eputil, epfmt, doi2eprintxml are command line programs run from a shell like Bash. ep2apid is a web service that can also be run from the command line or setup as a “daemon” and run from systemd. They allow you to harvest, work with EPrint repository content, and import content from CrossRef and DataCite.
There is an experimental installer.sh script that can be run with the following command to install lastest table release. This may work for macOS, Linux and if you’re using Windows with the Unix subsystem.
curl https://caltechlibrary.github.io/eprinttools/installer.sh | sh
Below are generalized instructions for installation of a release.
Compiled versions are available for macOS (Intel and M1 processors as macos-amd64 or macos-arm64), Linux (amd64 process, linux-amd64), Windows (amd64 and arm64 processor, windows-amd64 and windows-arm64) and Rapsberry Pi (arm7 processor, raspbian-arm7)
VERSION_NUMBER is a symantic version
number (e.g. v1.3.0
)
For all the released version go to the project page on Github and click latest release
https://github.com/caltechlibrary/eprinttools/releases/latest
| Platform | Zip Filename |
|---|---|
| Windows | eprinttools-VERSION_NUMBER-windows-amd64.zip |
| Windows | eprinttools-VERSION_NUMBER-windows-arm64.zip |
| macOS | eprinttools-VERSION_NUMBER-macos-amd64.zip |
| macOS | eprinttools-VERSION_NUMBER-macos-arm64.zip |
| Linux/Intel | eprinttools-VERSION_NUMBER-linux-amd64.zip |
| Raspbery Pi | eprinttools-VERSION_NUMBER-raspbian-os-arm7.zip |
export PATH="\$HOME/bin:\$PATH"
)Here’s an example of the commands run in the Terminal App after downloading the zip file.
cd Downloads/
unzip eprinttools-*-macos-amd64.zip
mkdir -p $HOME/bin
cp -v bin/* $HOME/bin/
export PATH=$HOME/bin:$PATH
eputil -version
cd Downloads/
unzip eprinttools-*-macos-arm64.zip
mkdir -p $HOME/bin
cp -v bin/* $HOME/bin/
export PATH=$HOME/bin:$PATH
eputil -version
Here’s an example of the commands run in from the Bash shell on Windows 10 after downloading the zip file.
cd Downloads/
unzip eprinttools-*-windows-amd64.zip
mkdir -p $HOME/bin
cp -v bin/* $HOME/bin/
export PATH=$HOME/bin:$PATH
eputil -version
cd Downloads/
unzip eprinttools-*-windows-arm64.zip
mkdir -p $HOME/bin
cp -v bin/* $HOME/bin/
export PATH=$HOME/bin:$PATH
eputil -version
Windows on ARM is relatively rare (in 2023). There are a few Windows for ARM developer boxes out and some Microsoft Surface tablets use an ARM processor.
To find out what type of processor you are running on Windows you can type “systeminfo” into the command prompt or search in the taskbar for “systeminfo” then click on the System Information menu item. You’re looking for an entry for “processor”. It may look something like
~~~ Processor(s): 1 Processor(s) Installed. [01]: Intel64 Family 6 Model 142 Stepping 12 GenuineIntel ~1803 Mhz ~~
If you see “Intel” somewhere in the description choose the Zip file with “windos” and “amd64” in the name.
Here’s an example of the commands run in from the Bash shell after downloading the zip file.
cd Downloads/
unzip eprinttools-*-linux-amd64.zip
mkdir -p $HOME/bin
cp -v bin/* $HOME/bin/
export PATH=$HOME/bin:$PATH
eputil -version
Released version is for a Raspberry Pi 2 or later use (i.e. requires ARM 7 support).
Here’s an example of the commands run in from the Bash shell after downloading the zip file.
cd Downloads/
unzip eprinttools-*-raspbian-arm7.zip
mkdir -p $HOME/bin
cp -v bin/* $HOME/bin/
export PATH=$HOME/bin:$PATH
eputil -version
eprinttools is “go gettable”. Use the “go get” command to download the dependant packages as well as eprinttools’s source code.
go get -u github.com/caltechlibrary/eprinttools/...
Or clone the repstory and then compile
cd
git clone https://github.com/caltechlibrary/eprinttools \
src/github.com/caltechlibrary/eprinttools
cd src/github.com/caltechlibrary/eprinttools
make
make test
make install


Collection of connection-relevant settings, used internally by PhotonNetwork.ConnectUsingSettings.
More...
Collection of connection-relevant settings, used internally by PhotonNetwork.ConnectUsingSettings.
| Enumerator |
|---|
| NotSet |
|
| PhotonCloud |
|
| SelfHosted |
|
| OfflineMode |
|
| BestRegion |
|
| override string ServerSettings.ToString |
( |
| ) |
|
| void ServerSettings.UseCloud |
( |
string |
cloudAppid | ) |
|
| void ServerSettings.UseCloudBestResion |
( |
string |
cloudAppid | ) |
|
| void ServerSettings.UseMyServer |
( |
string |
serverAddress, |
|
|
int |
serverPort, |
|
|
string |
application |
|
) |
| |
| string ServerSettings.AppID = "" |
| bool ServerSettings.DisableAutoOpenWizard |
| bool ServerSettings.PingCloudServersOnAwake = false |
| ConnectionProtocol ServerSettings.Protocol = ConnectionProtocol.Udp |
| List<string> ServerSettings.RpcList = new List<string>() |
| string ServerSettings.ServerAddress = "" |
| int ServerSettings.ServerPort = 5055 |
The documentation for this class was generated from the following file:
- D:/work/LittleHeroes_Game/Assets/Photon Unity Networking/Plugins/PhotonNetwork/ServerSettings.cs


This is an article
Articles are for independent, self-contained content.
This is a GREAT pull quote.
- Author
And some more in this article. And a nice wee span here too. Just in case.
Sections are for... well, sections. They could be sections of the site (containing an article) or sections within content (like an article)
Articles are for independent, self-contained content.
This is a GREAT pull quote.
- Author
And some more in this article. And a nice wee span here too. Just in case.


A public application programming interface (API) key is required to access and use available APIs on beta.SAM.gov
Only request an API key if your profile will individually access SAM.gov data via an API. If you are just entering through the front end or from an agency system, then you do not need an API key.


This is a sample html for DrawCanvas.js(JsDoc).
You can draw images by mouse dragging on canvas.
DrawCanvas.js has some config APIs for drawing, and undo/redo functions. To see how to call them, please see JsDoc or show script on this html with web browser's developer tool.
Pen Size :
R :
G :
B :
Drawn image can be converted to Base64 data string format, or cleared. Base64 data can be used to download as image.


After your images are done uploading, you'll be able to continue to another page where you can manually enter metadata for your images.
This is one way to automate the process of setting certain image metadata fields.
This is also the only way where we currently support uploading points and annotations.
Required filename format: {{ field.field.source_specific_filename_format }}
For example, let's say your source has the following location keys: Site, Depth, Transect Line and Quadrant. If you want to upload a .jpg image that was taken at Site: sharkPoint, Depth: 10m, Transect Line: 3, and Quadrant: qu4, on 14 January 2010, the filename for upload should be:
sharkPoint_10m_3_qu4_2010-01-14.jpg
Alternatively, if you also want to store the original filename - say it's
IMG_0032.jpg
- you can use:
sharkPoint_10m_3_qu4_2010-01-14_IMG_0032.jpg
The original filename is not used by CoralNet, but could be useful for your own reference.
The filename format can be tricky to get right. When you select your files, we will try to check your filenames for formatting mistakes, so that you can fix any mistakes before actually starting the upload.
With a CSV (comma-separated values) file, you can automate the process of setting all of the image metadata fields. One CSV row specifies the metadata for one image.


Table Descriptions
Account Table
CREATE TABLE Account (
Account_ID INTEGER NOT NULL PRIMARY KEY,
Fname VARCHAR(30) NOT NULL,
Lname VARCHAR(30) NOT NULL,
Phone VARCHAR(15) NOT NULL,
Address VARCHAR(50) NOT NULL,
State VARCHAR(2) NOT NULL,
Zip INTEGER NOT NULL,
Username VARCHAR(30) NOT NULL UNIQUE,
Password VARCHAR(30) NOT NULL
);
Entity: The Account entity maintains general data on users and their
corresponding accounts. It may be accessed by game developers, billing,
customer service, etc.
Attributes:
- Account_ID - This is the main key identifying an account.
- Fname - A user's first name.
- Lname - A user's last name.
- Phone - A user's phone number.
- Address - A user's address.
- State - A user's state abbreviation.
- Zip - A user's zip code.
- Username - A user's account username (must be unique).
- Password - A user's account password.
Payment Table
CREATE TABLE Payment (
Payment_ID INTEGER NOT NULL PRIMARY KEY,
Active_ornot VARCHAR(8) NOT NULL CHECK (Active_ornot IN('active', 'inactive')),
Recur_month_payment REAL NOT NULL DEFAULT 5.99 CHECK(Recur_month_payment = 5.99),
Type VARCHAR(10) NOT NULL CHECK (Type IN ('visa', 'mastercard')),
CC_no INTEGER NOT NULL,
CC_expr VARCHAR(10) NOT NULL,
CC_scode INTEGER NOT NULL,
Account_ID INTEGER NOT NULL,
FOREIGN KEY(Account_ID) REFERENCES Account(Account_ID)
);
Entity: The Payment entity maintains data on subscription payments. It may
be accessed by billing, accounting, customer service, etc.
Attributes:
- Payment_ID - This is the main key identifying a payment.
- Active_ornot - Indicates whether a payment source is 'active' or 'inactive'.
- Recur_month_payment - Records payment amount, which is always the monthly fee of $5.99.
- Type - Records type of credit card used, 'visa' or 'mastercard'.
- CC_no - Credit card number.
- CC_expr - Credit card expiration.
- CC_scode - Credit card security code.
- Account_ID - A foreign key linking payments to their corresponding accounts.
Location Table
CREATE TABLE Location (
LocName VARCHAR(50) NOT NULL PRIMARY KEY,
Description VARCHAR(100) NOT NULL,
Weather VARCHAR(50) NOT NULL
);
Entity: The Location entity records a character's current location.
This may be accessed by game developers.
Attributes:
- LocName - This is the main key identifying a location. It is the name of the location.
- Description - Description of a game location.
- Weather - Weather effects present in a location.
Guild Table
CREATE TABLE Guild (
Guild_ID INTEGER NOT NULL PRIMARY KEY,
Guild_Name VARCHAR(50) NOT NULL,
Description VARCHAR(100) NOT NULL
);
Entity: The Guild entity maintains data on in-game guilds.
This may be accessed by game developers.
Attributes:
- Guild_ID - This is the main key identifying a guild.
- Guild_Name - The name of a guild.
- Description - Guild description.
Weapon Table
CREATE TABLE Weapon (
Weapon_ID INTEGER NOT NULL PRIMARY KEY,
Weapon_name VARCHAR(50) NOT NULL,
Type VARCHAR(20) NOT NULL CHECK (Type IN('sword', 'staff', 'wand', 'axe', 'dagger')),
Weapon_damage INTEGER
);
Entity: The Weapon entity maintains data on all weapons available in the game.
This may be accessed by game developers.
Attributes:
- Weapon_ID - This is the main key identifying a weapon.
- Weapon_name - The name of a weapon.
- Type - Type of weapon. Must be a 'sword', 'staff', 'wand', 'axe', or 'dagger'.
- Weapon_damage - Amount of damage points per hit of a weapon. Can be NULL.
Achievement Table
CREATE TABLE Achievement (
Ach_ID INTEGER NOT NULL PRIMARY KEY,
AchName VARCHAR(50) NOT NULL,
Description VARCHAR(50) NOT NULL
);
Entity: The Achievement entity maintains data on all game achievements.
This may be accessed by game developers.
Attributes:
- Ach_ID - The main key identifying an achievement.
- AchName - Name of an achievement.
- Description - Description of achievement.
Quest Table
CREATE TABLE Quest (
Quest_ID INTEGER NOT NULL PRIMARY KEY,
QName VARCHAR(100) NOT NULL,
Diff_level INTEGER NOT NULL CHECK(Diff_level BETWEEN 1 AND 100),
Description VARCHAR(100) NOT NULL,
Exp_completion INTEGER NOT NULL
);
Entity: The Quest entity maintains data on all game quests.
This may be accessed by game developers and quest writers.
Attributes:
- Quest_ID - The main key identifying a quest.
- QName - The name of a quest.
- Diff_level - Difficulty level of a quest. Must be between 1 and 100.
- Description - Description of a quest.
- Exp_completion - Amount of experience points gained on completion of a quest.
Character Table
CREATE TABLE Character (
CharName TEXT NOT NULL PRIMARY KEY,
Race VARCHAR (10) NOT NULL CHECK (Race IN ('human', 'zombie', 'reptilian')),
Class VARCHAR (10) NOT NULL CHECK (Class IN ('warlock', 'assassin', 'mercenary')),
Level INTEGER NOT NULL DEFAULT 1 CHECK(Level BETWEEN 1 AND 100),
Exp_pts INTEGER NOT NULL DEFAULT 0 CHECK(Exp_pts BETWEEN 0 AND 100000),
Account_ID INTEGER NOT NULL,
LocName VARCHAR (50) NOT NULL,
Guild_ID INTEGER,
Weapon_ID INTEGER,
Ach_ID INTEGER,
Quest_ID INTEGER,
FOREIGN KEY(Ach_ID) REFERENCES Achievement(Ach_ID),
FOREIGN KEY(LocName) REFERENCES Location(LocName),
FOREIGN KEY(Account_ID) REFERENCES Account(Account_ID),
FOREIGN KEY(Guild_ID) REFERENCES Guild(Guild_ID),
FOREIGN KEY(Weapon_ID) REFERENCES Weapon(Weapon_ID),
FOREIGN KEY(Quest_ID) REFERENCES Quest(Quest_ID)
);
Entity: The Character entity maintains data on all user characters.
This may be accessed by game developers, customer service, etc.
Attributes:
- CharName - The main key identifying a character. It's the name of a character.
- Race - A character's race. Must be a human, zombie, or reptilian.
- Class - A character's class. Must be a warlock, assassin, or mercenary.
- Level - A character's level. Must be between 1 and 100.
- Exp_pts - A character's current experience points, must be between 0 and 100,000.
- Account_ID, LocName, Guild_ID, Weapon_ID, Ach_ID, and Quest_ID - foreign keys.


This plugin will calculate overall and userbased statistics from this Emby server instance. Keep in mind that viewing an item multiple times will not increase the "watched" count. It will only count as 1. Last statistics finished at


'Half-Life: Alyx' is a VR prequel set before the events of 'Half-Life 2'
Yes, 'Half-Life' is back! No, we're not finding out what happened after 'Episode Two.'
by Nathan IngrahamAfter more than 12 years, Valve is officially returning to the Half-Life universe. Half-Life: Alyx is a "full-length" VR entry into the series -- but if you were thinking we'd finally find out what happened after the events of Half-Life 2: Episode Two, I have some extremely disappointing news. Alyx will take place between the events of Half-Life and Half-Life 2. For those of us who've been waiting for Valve to return to these games, it's a bit of a bittersweet moment -- the company undoubtedly knows how to make an excellent game, and the screenshots Valve shared certainly should get fans excited. But if you're looking for closure after the mega-cliffhanger that was Episode Two, you'll have to keep waiting.
Enough about what Alyx isn't, though. The game is set for release on Steam in March of 2020, just four short months from now, and will work with all PC-compatible VR headsets. Pre-orders are open now and the game costs $59.99, though owners of Valve's Index VR headset will get it for free. Unfortunately, it seems there's no plans for a non-VR version of the game, so get ready to open your wallets if you haven't jumped on board that train yet.
As for what to expect from the story, it shouldn't be too big a surprise to those who've played Half-Life 2. Valve says the game will focus on Alyx Vance and her father Eli's fight against the Combine, an alien race that has occupied Earth. Past Half-Life games didn't make it entirely clear how the Combine came to enslave humanity following the events of the first game, where they didn't feature at all, so we may get some insight into how things got as bad as they did.
Gallery: Half-Life: Alyx screenshots | 7 Photos
The screenshots Valve shared show a familiar look at a ruined, occupied city that is probably City 17 from Half-Life 2 -- but we've never seen it rendered in this fidelity, and that's without the extra immersion VR will provide. Also, gravity gloves! Can't wait to put those to work.
Valve released a trailer as well, and it drives home just how much technology has changed since the last Half-Life game was released in 2007. The world is stunningly detailed and it looks like VR will let you interact with literally any object in the game, as a scene where Alyx dug through items on a shelf looking for a spare bullet showed. And just to drive fans into a further frenzy, the trailer ends with a quick glimpse at the infamous G-man.
"Everyone at Valve is excited to be returning to the world of Half-Life," Valve's Gabe Newell said in a statement. "VR has energized us. We've invested a lot of ourselves in the technology. But we're also game developers at heart, and to be devoting ourselves to a VR game this ambitious is just as exciting. For that to come in the form of Half-Life feels like the culmination of a lot things we care a lot about: truly great games, cutting edge technology, and open platforms. We can't wait for people to experience this."
That all sounds good, but here's hoping that this is the start of a new journey into the world of Half-Life and not a swan song. But regardless of what happens, it's hard not to at least be curious about a full-fledged new game from Valve.


--- layout: default --- All the (design) assets. Ever. By the way, what is design actually? Watch my video to learn {% for post in site.posts limit:6 %} {% if post.tag contains "design" %} {{ post.tag }} {{ post.title }} {{ post.meta }} Read Post {% endif %} {% endfor %}
{{ post.tag }}
{{ post.meta }}


|
Sensor Fusion Library
0.4.0
Orientation sensing for Espressif (ESP32, ESP8266) processors
|
Defines commands to perform various tasks (e.g. read Device ID, Initialize, Read Data) for the FXOS8700 6-axis accelerometer plus magnetometer. Actual I2C interface functions are found in sensor_io_i2c files. More...
#include "sensor_fusion.h"
#include "driver_fxos8700.h"
#include "driver_fxos8700_registers.h"
#include "driver_sensors.h"
#include "hal_i2c.h"
Macros | |
| #define | FXOS8700_COUNTSPERG 8192 |
| #define | FXOS8700_COUNTSPERUT 10 |
Functions | |
| int8_t | FXOS8700_Accel_Init (struct PhysicalSensor *sensor, SensorFusionGlobals *sfg) |
| int8_t | FXOS8700_Mag_Init (struct PhysicalSensor *sensor, SensorFusionGlobals *sfg) |
| int8_t | FXOS8700_Therm_Init (struct PhysicalSensor *sensor, SensorFusionGlobals *sfg) |
| int8_t | FXOS8700_Init (struct PhysicalSensor *sensor, SensorFusionGlobals *sfg) |
| int8_t | FXOS8700_Therm_Read (struct PhysicalSensor *sensor, SensorFusionGlobals *sfg) |
| int8_t | FXOS8700_Read (struct PhysicalSensor *sensor, SensorFusionGlobals *sfg) |
| int8_t | FXOS8700_Idle (struct PhysicalSensor *sensor, SensorFusionGlobals *sfg) |
Variables | |
| const registerReadlist_t | FXOS8700_WHO_AM_I_READ [] |
| const registerReadlist_t | FXOS8700_F_STATUS_READ [] |
| registerReadlist_t | FXOS8700_DATA_READ [] |
| const registerwritelist_t | FXOS8700_Initialization [] |
| const registerwritelist_t | FXOS8700_FULL_IDLE [] |
Defines commands to perform various tasks (e.g. read Device ID, Initialize, Read Data) for the FXOS8700 6-axis accelerometer plus magnetometer. Actual I2C interface functions are found in sensor_io_i2c files.
| registerReadlist_t FXOS8700_DATA_READ[] |
| const registerReadlist_t FXOS8700_F_STATUS_READ[] |
| const registerwritelist_t FXOS8700_FULL_IDLE[] |
| const registerReadlist_t FXOS8700_WHO_AM_I_READ[] |


PRINCE CHANDAPILLAI
PRINCE CHANDAPILLAI
TRY TO STUDY
WEB
DEVELOPMENT
This is a link to GitHub!
THANKYOU FOR CONNECTING


Register one or more applications by entering a Name,
Type and App URI of the application Jar.
You can also provide an optional metadata artifact URI.
The App URI & the Metadata Artifact URI are typically provided using the Maven
coordinates of the Jar but can be a local file or a docker image URI.
By checking force, the applications will be imported and installed
even if it already exists but only if not being used already.


Slim Launcher
Github Repo
A minimalist launcher that only allows you to use fewer apps on your phone


Main Menu
Shadowpaw Li Li
Download
Default
SP Attack Launch 06
SP Attack Launch 04
SP Attack Launch 05
SP Attack Launch 01
SP Attack Launch 02
SP Attack Launch 03
SP Attack PreLaunch 08
SP Attack Projectile 04
SP Attack Projectile 01
SP Attack Projectile 03
SP Attack Projectile 02
SP Attack PreLaunch 01
SP Attack PreLaunch 02
SP Attack PreLaunch 03
SP Attack PreLaunch 07
SP Attack PreLaunch 06
SP Attack PreLaunch 04
SP Attack PreLaunch 05
SP Attack Impact 04
SP Attack Impact 05
SP Attack Impact 01
SP Attack Impact 02
SP Attack Impact 03


Project Title: Virtual Compiler (Java)
Description: The purpose of this project was to develop a sample Java Virtual Machine using top down parser. First, I implemented DFA (Deterministic Finite Automata) according to a given grammar. Secondly, I had to implement a top-down parser for a given BNF (Backus-Naur Form). Then I extended it by a type checker and a variable-declaration checker. Finally, I extended the type checker implemented in phase 3 by an intermediate- code generator that emits stack-based virtual machine instructions.


Game!
{% if request.args.get('submitted', None) %}
Your high score has been submitted. Thank you for playing! Click Start below
to play again.
{% else %}
The game is simple! Simply copy the digits of Pi (or τ) from the middle of the screen to the
bottom, being careful not to make any mistakes.
{% endif %}
Start


Go home
Birthday date: {{ car_owner.date_of_birth }}
Birthday date: {{ owner_info.date_of_birth }}
Passport number: {{ owner_info.passport_number }}
Home address: {{ owner_info.home_address }}
Nationality: {{ owner_info.nationality }}


b e a t r i c e a i s p u r o |
||||
|
09..10..99
derek and brian Thank you for the opportunity to talk with you today about the design position with >en. The broad range of creative possibilities makes this job very appealing. I have always enjoyed being a part of collaborative projects, and I feel that I could contribute a lot of energy and enthusiasm toward the work assigned me. I am confident that, should you decide to hire me, I will be capable of taking on all of the responsibilities that this position requires, acquiring and improving new skills, and meeting challenges and deadlines in a professional manner. Thanks again, I look forward to hearing from you soon.
sincerely,
|
||||
r e s u m e b e g r a f i c . c o m |
|
|||


NIDC {{ $.Site.Params.year }} Sponsors
We encourage you to support our sponsors as they've all proved their commitment to the NI developer community by supporting us.
Would you like to become a sponsor? Get information on options and submit an enquiry through our become a sponsor page.
{{ partial "sponsors.html" . }}


KEC International rises 4% on orders win worth Rs 1,806 crore
The T&D business and SAE Towers have secured orders of Rs 283 crore for T&D projects in India, East Asia Pacific and the Americas.
Shares of KEC International rose more than 4 percent in the early trade on November 4 after the company had secured new orders of Rs 1,806 crore across its various businesses.
The company's railways business has secured orders worth Rs. 1,303 crore in India, including orders for overhead electrification of railway lines and associated civil works and construction of road over bridges (ROBs), roadbeds, major and minor bridges.
The T&D business and SAE Towers have secured orders of Rs 283 crore for T&D projects in India, East Asia Pacific and the Americas.
Its civil business has secured orders of Rs 63 crore for civil and construction works in India. And, its cables business has secured orders of Rs 157 crore for various types of cables/cabling projects.
“We are delighted with the new orders secured across our business verticals, especially in railways, which continues to expand its portfolio. The railway business continues to remain on a high growth trajectory. These large order wins further consolidate our leadership position in this sector,” said Vimal Kejriwal, MD & CEO, KEC International.
At 09:16 hrs, KEC International was quoting at Rs 278.75, up Rs 7.15, or 2.63 percent, on the BSE.Special Thursday Expiry on 10th 7th Nov
Early Closure to The Great Diwali Discount. Last Chance to get Moneycontrol PRO for a year @ Rs. 289/- only
Coupon code: DIWALI


Properties for the Remove Dups component can be viewed by Double click->component on canvas. The properties contain only the 'General' tab since Remove Dups falls under the Straight Pull category in the component palette.
- Name - The identifier for the component. This is a mandatory property. This property is pre-populated with the component name, i.e. 'Removedups' followed by an incremental number. It can be changed to any custom name. The name property has following restrictions:
- Must be specified and should not be blank.
- Must be unique across the job.
- Accepts only alphabets (a-z), numerals (0-9) and 4 special characters: "_", "-", ",", " " (space)<./span>
- ID - ID field will specify unique id for every component.
- Type - Type defines the type of component within the category. This typically is the name of the component. This is a non editable field.
- Retain - Retain has three options -
First - Retains first occurrence of specified duplicate field and removes other duplicate records.
Last - Retains last occurrence of specified duplicate field and removes other duplicate records.
Unique - Retains any unique record from duplicate records.
- Batch - Batch simply accepts a numeric number starting from 0 to 99 and signifies the batch this component will execute in. By default this is 0.
The Remove_Dups components applies validations to the mandatory fields as described above. Upon placing the Remove_Dups component on job canvas for the first time (from component palette), the component shows up a warning icon as mandatory properties are not provided.
The properties window displays error icon on mandatory fields if it has an incorrect value. The error icon is displayed on the tab as well, if any of the field within the tab has some error.
If the properties window has some error even after user visit's it once, then the error icon appears on RemoveDups component. This error icon is removed only when all the mandatory fields are supplied with correct values.


| | |
- define_components(mod)
- Augments a Pyomo abstract model object with sets and parameters that
describe load zones and some related geographic areas. Unless
otherwise stated, each set and parameter is mandatory.
LOAD_ZONES is the set of load zones. mod uses a zonal
transport model to describe the power grid. Each zone is effectively
modeled as a single bus connected to the inter-zonal transmission
network, and connected to loads via local transmission and
distribution that incurs efficiency losses and must be upgraded over
time to always meet peak demand. Load zones are abbreviated as lz in
parameter names and as z for indexes.
lz_demand_mw[z,t] describes the average power demand in each load
zone z and timepoint t. This is a non negative value.
lz_dbid[z] stores an external database id for each load zone. This
is optional and defaults to the name of the load zone. It will be
printed out when results are exported.
lz_cost_multipliers[z] is an zone-specific economic multiplier that
modifies all costs incurred in each load zone. This could reflect
differential costs of labor, regional inflation, etc. This is an
optional parameter with a default of 1. mod-WECC uses values
from the Army Corps of Engineers Civil Works Construction Cost Index
System with values ranging from 0.92 to 1.20.
lz_ccs_distance_km[z] describes the length of a pipeline in
kilometers that would need to be built to transport CO2 from a load
zones central bus to the nearest viable CCS reservoir. This
parameter is optional and defaults to 0.
DumpPower[load_zone, timepoint] is a decision variable that allows
overproduction of energy in every load zone and timepoint.
This may be interpretted either as the aggregate curtailment needed,
or as a literal dump load. In the language of linear programming,
this is a "slack variable" for an energy balancing constraint.
LZ_Energy_Components_Produce and LZ_Energy_Components_Consume are
lists of components that contribute to load-zone level energy
balance equations. Other modules may add elements to either list.
The energy_balance module will construct a Satisfy_Load constraint
using these lists. Each component needs to be indexed by [load_zone,
timepoint]. If this indexing is not convenient for native model
components, I advise writing an Expression object indexed by [lz,t]
that contains logic to access or summarize native model components.
Derived parameters:
lz_total_demand_in_period_mwh[z,p] describes the total energy demand
of each load zone in each period in Megawatt hours.
- define_dynamic_components(mod)
- Adds components to a Pyomo abstract model object to enforce the
first law of thermodynamics at the level of load zone busses. Unless
otherwise stated, all terms describing power are in units of MW and
all terms describing energy are in units of MWh.
Energy_Balance[load_zone, timepoint] is a constraint that mandates
conservation of energy in every load zone and timepoint. This
constraint sums the model components in the lists
LZ_Energy_Components_Produce and LZ_Energy_Components_Consume - each
of which is indexed by (lz, t) - and ensures they are equal.
- load_inputs(mod, switch_data, inputs_dir)
- Import load zone data. The following tab-separated files are
expected in the input directory. Their index columns need to be on
the left, but the data columns can be in any order. Extra columns
will be ignored during import, and optional columns can be dropped.
Other modules (such as local_td) may look for additional columns in
some of these files. If you don't want to specify data for any
optional parameter, use a dot . for its value. All columns in
load_zones.tab except for the name of the load zone are optional.
load_zones.tab
LOAD_ZONE, lz_cost_multipliers, lz_ccs_distance_km, lz_dbid
loads.tab
LOAD_ZONE, TIMEPOINT, lz_demand_mw
- save_results(model, instance, outdir)
- Export results to standard files.
This initial placeholder version is integrating snippets of
some of Matthias's code into the main codebase.
|


Cape Cod
With an expansive 40 miles of National Seashore, Cape Cod is one of New England's premier beach destinations. But there's more to do here than sun and sand: Thriving summer theater scenes draw out the best of Broadway while miles-long bike trails and well-protected wildlife showcases the one-of-a-kind Cape Cod environs. And don't forget to visit lively Provincetown where a lesser-known chapter of the Thanksgiving Pilgrim story waits to be uncovered.
Palm Springs
Palm Springs used to be all about the bling.
Once Hollywood’s favourite playground with the likes of Frank Sinatra, Elvis and Marilyn Monroe popping in regularly to party, it’s now dusted off the faded glamour to emerge in the bright Californian sunshine as a hip indie hangout for Coachella refugees, a magnet for architecture fans, an escape for nature lovers and a laid-back gay destination.
Despite its many personalities, it’s a relaxed and quirky desert town with heaps of playful charm.
So many beautiful houses So many beautiful houses It’s got architecture Not only was it a mecca for Hollywood stars but celebrities of the architecture world also created some stunning buildings in Palm Springs including Donald Wexler, E. Stewart Williams and John Lautner. Taking inspiration from the Bauhaus movement, they followed modernist principles coming up with sleek designs that work with the natural landscape around it.  Even the local KFC has its own offbeat personality.
You can take a tour with a knowledgeable guide to sigh over Leonardo DiCaprio’s latest holiday home purchase, marvel at Liberace’s home and check out the house where Elvis and his new bride Priscilla spent their first year of marriage.
It’s got natureA short drive out of Palm Springs is Indian Canyons, a gorgeous reservation. There’s a whole range of walks you can do but the best way to take in the stunning views of the desert is by horseback.
Aspen
If there's one thing Aspen's known for, it's skiing. This tiny mountain town is surrounded by four monumental ski areas: Aspen Mountain, Aspen Highlands, Buttermilk (a favorite among beginners) and the ever-popular Snowmass Ski Resort. The luster isn't lost when the snow melts, however. The Rockies offer some spectacular hiking spots like the Maroon Bell peaks, with jaw dropping vistas. If you're looking for a more relaxing getaway, treat yourself to a massage at an area spa or try a therapeutic soak in the Glenwood Springs natural hot springs.
Las Vegas
There are a lot of reasons to visit Las Vegas, but let’s take a look at our Top 5:
- World Class Restaurants – Whether you are looking to pig out at a buffet, eat delicate meals at a fancy French restaurant or bite into an amazing cut of beef, Las Vegas has plenty of options up and down the strip (and off). Some of the worlds most renowned chefs have attached their names and reputations to the ultra-competitive market that is Las Vegas. Not sure where to go? Ask your concierge, ask the locals and read reviews on Yelp.com and other review sites or even ask your cab/limo driver! There are plenty of options for all different budgets so don’t be afraid to try something new!
- ,Shows and Concerts – Las Vegas has come a long way since the Rat Pack used to grace the stage at the Sands and other venues, drawing crowds to their smoky show room to listen to the legendary performers. While you can still catch a number of headliner shows in town, production shows now dominate the Las Vegas strip. Seems like every where you turn there is a new Cirque du Soleil show popping up, each with its own unique theme and super talented cast. Looking for something a little more risque? We have you covered! From the girls of Fantasy to the guys of Thunder From Down Under, there is something for everyone.
- Museums and Galleries – When thinking of Las Vegas, it’s doubtful that museums and galleries would come to mind, however there are quite a few impressive and unique offerings around town. Some of the unique offerings include the Mob Museum, National Atomic Testing Museum, Pinball Hall of Fame, Bodies Exhibit, Titanic: The Artifact Exhibition and the Madame Tussauds Wax Museum. There are also quite a few art galleries and auto collections as well.
- Attractions – Need a break from the Strip? Want something fun to do during the day? Las Vegas has a number of attractions that will have you forgetting that you are in the home of the multi-million dollar casinos. If you have always dreamed of being behind the wheel of a super car going at top speeds, handling heavy machinery or firing rounds out of a machine gun, you can fulfill them while right here in Las Vegas. The Hoover Dam and Grand Canyon are within driving distance and there are several trails in the mountains around the Valley as well.
- Las Vegas Nightclubs – More and more people are coming to Vegas to party each year and with the incredible Vegas clubs, who can blame them? Clubs like XS, Omnia, Hakkasan and more are bringing in some of the top DJ’s in the world to spin the latest and greatest in music. Some of the top nightclubs in the world are right here in Las Vegas!


In the last past years, football is more and more globalized. Mainly because the popularity and passion of the football surrounds billions of people from all around the world. Football has a big place in the history of humanity. Nowadays football is a gigantic empire. The question is does the globalization of football encourage people for the consumption?
Firstly, we will see the sponsors and advertisments with football: with the popularity of football, it attracts sponsors to make them more visible to the public and same for advertisments.
Secondly, we will see the merchandise and exports which surround football.
Finally, we will see that TV coverage strongly affects football and its economy.
Football games are very often sponsored. Football clubs need money to buy equipments: clothes, football shoes, balls and to maintain Stadiums. The money must come from somewhere and the tickets aren't enough. So they ask bigger companies to be their sponsors: it allows the football clubs to get their equipments, the counterpart is the sponsors are displayed on the Stadium and on the player's clothes. It's an advertisment for the company behind the sponsor. Spectators will then see the sponsor's logo while watching football and will associate the pictures of the match to the companies and their products, be it consciously or inconsciously. After the match, the spectators will have a better opinion about these sponsors and will more likely buy a product from them. Sponsor companies make more money and football clubs benefit from this. Everyone wins, except the spectator.
But sponsorship is not the only way for big companies to use football to advertise themselves. They can do football-related advertisments! As football is very popular, people who see the advertisments will have a better opinion about the product and will think it's better than another same product from another company. They use the image, the popularity of football players to highlight the fact that they can be trusted for their product: if a popular football player use that product then the product should be high quality. Let's take the example of a child watching such an advertisment, our child would be fan of a football player. They would forst see an advertisment for a backpack without any football related content, after that, there is a second advertisment for another backpack now showing some popular football players including the favorite player of the child: the child would pick the backpack from the football-related advertisment, even if they already had a backpack. We can apply this to anyone.
Let's observe this advertisment for Nike. We can see that there is many popular football players like Neymar and Ronaldo. The video starts with a scene of young football players wishing to play like their favorite players, followed by a sxene we can see them "becoming" their favorite players and play as them. We can see the Nike logo throughout the video: on the clothes, on the stadium, even on the ball! Nike is very highlighted via the football in this video and as there are popular football players, fans will more likely buy products from Nike with the idea in mind that through buying these products, they could do the same as their heroes.
Another source of incomes for football clubs are merchandise: selling memorabilia, scarves or shoes displaying the team's name and/or logo. This allows clubs to gain more visibility on a worldwide scale and to gain their fans's trust.
While this sounds nice, this means that football clubs don't compete on a regional scale: their fans aren't simply the ones living in the same town, but are actually from the entire world. Concurrency builds up on a global scale and clubs have to compete always harder to gain coverage.
Big sports events like the World Cup cannot be streamed by everyone. The FIFA company signs contracts with a small selection of TV channels giving them the exclusive right to stream the match. 2018's 64 matches were all streamed in France by the company BeIn Sports, yet the channel TF1 bought the rights to stream 28 of these matches. TV Companies may even buy exclusive, expensive privileges to install their own cameras. This shows us that the FIFA Company has the monopole over the World Cup's TV coverage, and thus they make money from the different TV companies.
These TV Companies will, on the other hand, have a much bigger audience around these events. Ad spots on their channel may be sold at much higher prices. The channel TF1 had over 16 millions viewers during the matches played by the french team in the 2018 World cup, making this season a very productive period for them.
Lastly, the TV manufacturers also benefit from the World Cup. TV sales rise up before the competitions, as enthousiasts wishbto watch them on better TVs. This might be amplified by the fact that the World Cup streaming channels are now in HD or even in 4K, for which buying a new monitor promises a better experience. Old TVs will however be dumped and it means that the World Cup has a negative environmental impact because of this tendency.
We can see here that football has become a big, sport industry. It has, over the last decades, become a globalized, complex organisation. Companies are sponsoring football events and are using it as a beneficial factor for themselves and their products; the football world becomes globalized: clubs become known worldwide and concurrence increases; TV sport events become key events, their diffusion is done by very few companies.
Instead of just being a sport, football has become an intricate set of economic benefits and needs, where the football fans are the only roots of football's economic tree. To maintain this root, they encourage people for the consumption.


.lf-button
Lanflix button design (just an example, needs to be reworked)
Usage
<button class="lf-button">Click me</button>
An overview of all developed components and how to use them
Lanflix button design (just an example, needs to be reworked)
<button class="lf-button">Click me</button>
Displays the Github fork ribbon

Displays the video graphic and name

Rick and Morty


60-year-old man nearly killed at Tamso
by Erica Apeatua Addo, GNATamso (W/R), Nov 25, GNA - A sixty-year-old man narrowly escaped death when he was knocked down by a Pontiac Vibe Saloon car with registration GW 2483-15 around Tamso in the Tarkwa-Nsueam Municipality.
The victim, Edward Cudjoe, sustained severe injuries and was rushed to the Apinto Government Hospital, where he is currently on admission and receiving treatment.
An investigator at the Tarkwa Motor Transport and Traffic Department (MTTD) of the Ghana Police Service, Chief Inspector George Kwabena Osei, confirmed the accident to the Ghana News Agency.
He said, on Wednesday, at about 1830 hours, the suspected driver, Isaac Bennah, 40 years, reported the incident at the Tarkwa police station on the same day at about 1630 hours.
According to the police, Bennah was driving the car from Tamso to Nsuta and upon reaching a section of the road near Church of Pentecost, knocked down the victim.
Chief Inspector Osei said the driver was arrested and the vehicle impounded and kept at the Tarkwa police station for further investigations.
In a related development, a Kia Rhino truck with registration number GN 3781-11 conveying sodium chloride rammed into a fruit and vegetable stall on the pedestrian walkway around Sag Junction.
According to an eye witness, the driver in charge of the vehicle, James Owuh, 35, had a brake failure, while descending the post office hill to enter the Tarkwa-Takoradi Highway.
No casualty was recorded and the suspected driver is in police custody for further investigations.
GNA


Good Will Hunting
Directed by Gus Van Sant, Jr. Starring Matt Damon (Will Hunting), Robin Williams (Sean McGuire), Ben Affleck (Chuckie), Minnie Driver (Skylar)
A film review by Chris Loar Copyright 1998 Chris Loar
Gus Van Sant is known for his quirky, bold, experimental features. This film is a break with that tradition; what we've got in _Good Will Hunting_ is a much slicker, more commercially viable film than I've seen from him before. In fact, he's made a film that could easily have been hackneyed, we've seen it so many times -- the rebellious youth tamed by his respect for an older, experienced man. Filmgoers hoping for the verve and originality of _Drugstore Cowboy_ or My Own Private Idaho_ will likely be disappointed. But Van Sant proves with this picture that he can do something more mainstream and palatable with not just competence, but with a certain level of energy and enthusiasm. We have certainly seen this story before, but it's been a while since we've seen it told this well.
Will Hunting (Matt Damon) is a walking contradiction. A young tough guy from the wrong side of Boston, he spends his days roaming the streets with his buddies, looking for trouble. His nights, though, are spent reading history and philosophy, and taking time out from his job as a janitor at MIT to solve math problems that baffle Nobel Laureates. Will is a math genius with an eidetic memory; he is also an angry young man who is on his way to a prison term when he is discovered by a Lambeau, a brilliant mathematician (played passably by Stellan Skarsgard), who secures Will's release, on the condition that the two of them work together -- and that Will agrees to see a therapist.
This last point is tricky, since Will is uncooperative, defensive, and too smart for his own good, and runs circles around every therapist he's sent to until he winds up in the hands of Lambeau's old college roommate, Sean McGuire.  And, at this point, the therapy starts to go somewhere -- for Sean is from South Boston himself, and understands that the only way to make any progress with Will is to win his trust. Williams gives one of the best performances of his career here, as we watch him teach Will how to approach his life, even as he himself starts to awaken to his own failures and what he needs to do about them.
These scenes with Will and Sean are often simply riveting, and they alone would provide a perfectly good reason to see the picture. Williams and Damon are great foils for each other; they bring two very different sorts of energy to these scenes. Damon, while not delivering the film's best performance, has a way of bringing out the finest in his co-stars; Williams flags a bit when Damon's not onscreen, while Minnie Driver (playing Syklar, Will's love interest) and Ben Affleck (as Chuckie, Will's best friend) really shine when they're playing off Damon.
The film has difficulty holding itself together at times; Affleck and Damon's script just doesn't have room to tell us everything we'd like to know about the major characters; Driver's and Affleck's characters would come off as rather cardboard were the actors not so skilled at painting character in a few deft brushstrokes. And the film hardly compares to Van Sant's best work; the direction and writing, while more than competent, are hardly making us take a fresh look at what cinema can do.
Taken on its own, however, the film is engrossing and, at times, startlingly moving. And it does something that most films of this troubled-youth genre don't do: it emphasizes that the most important thing a person can do is learn to think and feel independently. Too many stories ask us to believe that rebellious youth should learn to play by the rules; this one tells us that we should all be rebels -- but need to learn how to break only those rules that lie between us and what we want. Damon, Affleck, and Van Sant are telling us that the cure for the rebel without a cause is not to stop rebelling; it's to teach that rebel what a cause is, and let them find it themselves.
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


| Perimeter name | Category name | Data name | |
|---|---|---|---|
|
|
|
|
|
| There is no Subjects |
| Perimeter name | Category name | Data name |
|---|---|---|
|
|
|
|
| There is no Objects |
| Perimeter name | Category name | Data name |
|---|---|---|
|
|
|
|
| There is no Actions |


public class MimeMessage extends Message implements MimePart
Message
abstract class and the MimePart
interface. Clients wanting to create new MIME style messages will instantiate an empty MimeMessage object and then fill it with appropriate attributes and content.
Service providers that implement MIME compliant backend stores may want to subclass MimeMessage and override certain methods to provide specific implementations. The simplest case is probably a provider that generates a MIME style input stream and leaves the parsing of the stream to this class.
MimeMessage uses the InternetHeaders
class to parse and
store the top level RFC 822 headers of a message.
The mail.mime.address.strict
session property controls
the parsing of address headers. By default, strict parsing of address
headers is done. If this property is set to "false"
,
strict parsing is not done and many illegal addresses that sometimes
occur in real messages are allowed. See the InternetAddress
class for details.
RFC 822 header fields must contain only
US-ASCII characters. MIME allows non ASCII characters to be present
in certain portions of certain headers, by encoding those characters.
RFC 2047 specifies the rules for doing this. The MimeUtility
class provided in this package can be used to to achieve this.
Callers of the setHeader
, addHeader
, and
addHeaderLine
methods are responsible for enforcing
the MIME requirements for the specified headers. In addition, these
header fields must be folded (wrapped) before being sent if they
exceed the line length limitation for the transport (1000 bytes for
SMTP). Received headers may have been folded. The application is
responsible for folding and unfolding headers as appropriate.
MimeUtility
,
Part
,
Message
,
MimePart
,
InternetAddress
| Modifier and Type | Class and Description |
|---|---|
static class |
MimeMessage.RecipientType
This inner class extends the jakarta.mail.Message.RecipientType
class to add additional RecipientTypes.
|
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
cachedContent
If our content is a Multipart or Message object, we save it
the first time it's created by parsing a stream so that changes
to the contained objects will not be lost.
|
protected byte[] |
content
Byte array that holds the bytes of this Message's content.
|
protected java.io.InputStream |
contentStream
If the data for this message was supplied by an
InputStream that implements the SharedInputStream interface,
contentStream is another such stream representing
the content of this message. |
protected DataHandler |
dh
The DataHandler object representing this Message's content.
|
protected Flags |
flags
The Flags for this message.
|
protected InternetHeaders |
headers
The InternetHeaders object that stores the header
of this message.
|
protected boolean |
modified
A flag indicating whether the message has been modified.
|
protected boolean |
saved
Does the
saveChanges method need to be called on
this message? This flag is set to false by the public constructor
and set to true by the saveChanges method. |
ATTACHMENT, INLINE
| Modifier | Constructor and Description |
|---|---|
protected |
MimeMessage(Folder folder,
java.io.InputStream is,
int msgnum)
Constructs a MimeMessage by reading and parsing the data from the
specified MIME InputStream.
|
protected |
MimeMessage(Folder folder,
int msgnum)
Constructs an empty MimeMessage object with the given Folder
and message number.
|
protected |
MimeMessage(Folder folder,
InternetHeaders headers,
byte[] content,
int msgnum)
Constructs a MimeMessage from the given InternetHeaders object
and content.
|
|
MimeMessage(MimeMessage source)
Constructs a new MimeMessage with content initialized from the
source MimeMessage. |
|
MimeMessage(Session session)
Default constructor.
|
|
MimeMessage(Session session,
java.io.InputStream is)
Constructs a MimeMessage by reading and parsing the data from the
specified MIME InputStream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFrom(Address[] addresses)
Add the specified addresses to the existing "From" field.
|
void |
addHeader(java.lang.String name,
java.lang.String value)
Add this value to the existing values for this header_name.
|
void |
addHeaderLine(java.lang.String line)
Add a raw RFC 822 header-line.
|
void |
addRecipients(Message.RecipientType type,
Address[] addresses)
Add the given addresses to the specified recipient type.
|
void |
addRecipients(Message.RecipientType type,
java.lang.String addresses)
Add the given addresses to the specified recipient type.
|
protected InternetHeaders |
createInternetHeaders(java.io.InputStream is)
Create and return an InternetHeaders object that loads the
headers from the given InputStream.
|
protected MimeMessage |
createMimeMessage(Session session)
Create and return a MimeMessage object.
|
java.util.Enumeration<java.lang.String> |
getAllHeaderLines()
Get all header lines as an Enumeration of Strings.
|
java.util.Enumeration<Header> |
getAllHeaders()
Return all the headers from this Message as an enumeration
of Header objects.
|
Address[] |
getAllRecipients()
Get all the recipient addresses for the message.
|
java.lang.Object |
getContent()
Return the content as a Java object.
|
java.lang.String |
getContentID()
Returns the value of the "Content-ID" header field.
|
java.lang.String[] |
getContentLanguage()
Get the languages specified in the "Content-Language" header
field of this message.
|
java.lang.String |
getContentMD5()
Return the value of the "Content-MD5" header field.
|
protected java.io.InputStream |
getContentStream()
Produce the raw bytes of the content.
|
java.lang.String |
getContentType()
Returns the value of the RFC 822 "Content-Type" header field.
|
DataHandler |
getDataHandler()
Return a DataHandler for this Message's content.
|
java.lang.String |
getDescription()
Returns the "Content-Description" header field of this Message.
|
java.lang.String |
getDisposition()
Returns the disposition from the "Content-Disposition" header field.
|
java.lang.String |
getEncoding()
Returns the content transfer encoding from the
"Content-Transfer-Encoding" header
field.
|
java.lang.String |
getFileName()
Get the filename associated with this Message.
|
Flags |
getFlags()
Return a
Flags object containing the flags for
this message. |
Address[] |
getFrom()
Returns the value of the RFC 822 "From" header fields.
|
java.lang.String[] |
getHeader(java.lang.String name)
Get all the headers for this header_name.
|
java.lang.String |
getHeader(java.lang.String name,
java.lang.String delimiter)
Get all the headers for this header name, returned as a single
String, with headers separated by the delimiter.
|
java.io.InputStream |
getInputStream()
Return a decoded input stream for this Message's "content".
|
int |
getLineCount()
Return the number of lines for the content of this message.
|
java.util.Enumeration<java.lang.String> |
getMatchingHeaderLines(java.lang.String[] names)
Get matching header lines as an Enumeration of Strings.
|
java.util.Enumeration<Header> |
getMatchingHeaders(java.lang.String[] names)
Return matching headers from this Message as an Enumeration of
Header objects.
|
java.lang.String |
getMessageID()
Returns the value of the "Message-ID" header field.
|
java.util.Enumeration<java.lang.String> |
getNonMatchingHeaderLines(java.lang.String[] names)
Get non-matching header lines as an Enumeration of Strings.
|
java.util.Enumeration<Header> |
getNonMatchingHeaders(java.lang.String[] names)
Return non-matching headers from this Message as an
Enumeration of Header objects.
|
java.io.InputStream |
getRawInputStream()
Return an InputStream to the raw data with any Content-Transfer-Encoding
intact.
|
java.util.Date |
getReceivedDate()
Returns the Date on this message was received.
|
Address[] |
getRecipients(Message.RecipientType type)
Returns the recepients specified by the type.
|
Address[] |
getReplyTo()
Return the value of the RFC 822 "Reply-To" header field.
|
Address |
getSender()
Returns the value of the RFC 822 "Sender" header field.
|
java.util.Date |
getSentDate()
Returns the value of the RFC 822 "Date" field.
|
int |
getSize()
Return the size of the content of this message in bytes.
|
java.lang.String |
getSubject()
Returns the value of the "Subject" header field.
|
boolean |
isMimeType(java.lang.String mimeType)
Is this Part of the specified MIME type? This method
compares only the
primaryType and
subType . |
boolean |
isSet(Flags.Flag flag)
Check whether the flag specified in the
flag
argument is set in this message. |
protected void |
parse(java.io.InputStream is)
Parse the InputStream setting the
headers and
content fields appropriately. |
void |
removeHeader(java.lang.String name)
Remove all headers with this name.
|
Message |
reply(boolean replyToAll)
Get a new Message suitable for a reply to this message.
|
Message |
reply(boolean replyToAll,
boolean setAnswered)
Get a new Message suitable for a reply to this message.
|
void |
saveChanges()
Updates the appropriate header fields of this message to be
consistent with the message's contents.
|
void |
setContent(Multipart mp)
This method sets the Message's content to a Multipart object.
|
void |
setContent(java.lang.Object o,
java.lang.String type)
A convenience method for setting this Message's content.
|
void |
setContentID(java.lang.String cid)
Set the "Content-ID" header field of this Message.
|
void |
setContentLanguage(java.lang.String[] languages)
Set the "Content-Language" header of this MimePart.
|
void |
setContentMD5(java.lang.String md5)
Set the "Content-MD5" header field of this Message.
|
void |
setDataHandler(DataHandler dh)
This method provides the mechanism to set this part's content.
|
void |
setDescription(java.lang.String description)
Set the "Content-Description" header field for this Message.
|
void |
setDescription(java.lang.String description,
java.lang.String charset)
Set the "Content-Description" header field for this Message.
|
void |
setDisposition(java.lang.String disposition)
Set the disposition in the "Content-Disposition" header field
of this body part.
|
void |
setFileName(java.lang.String filename)
Set the filename associated with this part, if possible.
|
void |
setFlags(Flags flag,
boolean set)
Set the flags for this message.
|
void |
setFrom()
Set the RFC 822 "From" header field using the value of the
InternetAddress.getLocalAddress method. |
void |
setFrom(Address address)
Set the RFC 822 "From" header field.
|
void |
setFrom(java.lang.String address)
Set the RFC 822 "From" header field.
|
void |
setHeader(java.lang.String name,
java.lang.String value)
Set the value for this header_name.
|
void |
setRecipients(Message.RecipientType type,
Address[] addresses)
Set the specified recipient type to the given addresses.
|
void |
setRecipients(Message.RecipientType type,
java.lang.String addresses)
Set the specified recipient type to the given addresses.
|
void |
setReplyTo(Address[] addresses)
Set the RFC 822 "Reply-To" header field.
|
void |
setSender(Address address)
Set the RFC 822 "Sender" header field.
|
void |
setSentDate(java.util.Date d)
Set the RFC 822 "Date" header field.
|
void |
setSubject(java.lang.String subject)
Set the "Subject" header field.
|
void |
setSubject(java.lang.String subject,
java.lang.String charset)
Set the "Subject" header field.
|
void |
setText(java.lang.String text)
Convenience method that sets the given String as this
part's content, with a MIME type of "text/plain".
|
void |
setText(java.lang.String text,
java.lang.String charset)
Convenience method that sets the given String as this part's
content, with a MIME type of "text/plain" and the specified
charset.
|
void |
setText(java.lang.String text,
java.lang.String charset,
java.lang.String subtype)
Convenience method that sets the given String as this part's
content, with a primary MIME type of "text" and the specified
MIME subtype.
|
protected void |
updateHeaders()
Called by the
saveChanges method to actually
update the MIME headers. |
protected void |
updateMessageID()
Update the Message-ID header.
|
void |
writeTo(java.io.OutputStream os)
Output the message as an RFC 822 format stream.
|
void |
writeTo(java.io.OutputStream os,
java.lang.String[] ignoreList)
Output the message as an RFC 822 format stream, without
specified headers.
|
addRecipient, getFolder, getMessageNumber, getSession, isExpunged, match, setExpunged, setFlag, setMessageNumber, setRecipient
protected DataHandler dh
protected byte[] content
protected java.io.InputStream contentStream
contentStream
is another such stream representing
the content of this message. In this case, content
will be null.protected InternetHeaders headers
protected Flags flags
protected boolean modified
content
array is assumed to be valid and is used
directly in the writeTo
method. This flag is
set to true when an empty message is created or when the
saveChanges
method is called.protected boolean saved
saveChanges
method need to be called on
this message? This flag is set to false by the public constructor
and set to true by the saveChanges
method. The
writeTo
method checks this flag and calls the
saveChanges
method as necessary. This avoids the
common mistake of forgetting to call the saveChanges
method on a newly constructed message.protected java.lang.Object cachedContent
If this field is not null, it's return by the getContent()
method. The getContent()
method sets this field if it
would return a Multipart or MimeMessage object. This field is
is cleared by the setDataHandler(jakarta.activation.DataHandler)
method.
public MimeMessage(Session session)
headers
field is set to an empty InternetHeaders
object. The flags
field is set to an empty Flags
object. The modified
flag is set to true.session
- the Sesssionpublic MimeMessage(Session session, java.io.InputStream is) throws MessagingException
The input stream contains an entire MIME formatted message with headers and data.
session
- Session object for this messageis
- the message input streamMessagingException
- for failurespublic MimeMessage(MimeMessage source) throws MessagingException
source
MimeMessage. The new message is independent
of the original. Note: The current implementation is rather inefficient, copying the data more times than strictly necessary.
source
- the message to copy content fromMessagingException
- for failuresprotected MimeMessage(Folder folder, int msgnum)
This method is for providers subclassing MimeMessage
.
folder
- the Folder this message is frommsgnum
- the number of this messageprotected MimeMessage(Folder folder, java.io.InputStream is, int msgnum) throws MessagingException
This method is for providers subclassing MimeMessage
.
folder
- The containing folder.is
- the message input streammsgnum
- Message number of this message within its folderMessagingException
- for failuresprotected MimeMessage(Folder folder, InternetHeaders headers, byte[] content, int msgnum) throws MessagingException
MimeMessage
.folder
- The containing folder.headers
- The headerscontent
- The message contentmsgnum
- Message number of this message within its folderMessagingException
- for failuresprotected void parse(java.io.InputStream is) throws MessagingException
headers
and
content
fields appropriately. Also resets the
modified
flag. This method is intended for use by subclasses that need to control when the InputStream is parsed.
is
- The message input streamMessagingException
- for failurespublic Address[] getFrom() throws MessagingException
null
is returned.
This implementation uses the getHeader
method
to obtain the requisite header field.
getFrom
in class Message
MessagingException
- for failuresheaders
public void setFrom(Address address) throws MessagingException
null
,
this header is removed.setFrom
in class Message
address
- the sender of this messageIllegalWriteException
- if the underlying
implementation does not support modification
of existing valuesjava.lang.IllegalStateException
- if this message is
obtained from a READ_ONLY folder.MessagingException
- for other failurespublic void setFrom(java.lang.String address) throws MessagingException
null
,
this header is removed.address
- the sender(s) of this messageIllegalWriteException
- if the underlying
implementation does not support modification
of existing valuesjava.lang.IllegalStateException
- if this message is
obtained from a READ_ONLY folder.MessagingException
- for other failurespublic void setFrom() throws MessagingException
InternetAddress.getLocalAddress
method.setFrom
in class Message
IllegalWriteException
- if the underlying
implementation does not support modification
of existing valuesjava.lang.IllegalStateException
- if this message is
obtained from a READ_ONLY folder.MessagingException
- for other failurespublic void addFrom(Address[] addresses) throws MessagingException
addFrom
in class Message
addresses
- the senders of this messageIllegalWriteException
- if the underlying
implementation does not support modification
of existing valuesjava.lang.IllegalStateException
- if this message is
obtained from a READ_ONLY folder.MessagingException
- for other failurespublic Address getSender() throws MessagingException
null
is returned.
This implementation uses the getHeader
method
to obtain the requisite header field.
MessagingException
- for failuresheaders
public void setSender(Address address) throws MessagingException
null
,
this header is removed.address
- the sender of this messageIllegalWriteException
- if the underlying
implementation does not support modification
of existing valuesjava.lang.IllegalStateException
- if this message is
obtained from a READ_ONLY folder.MessagingException
- for other failurespublic Address[] getRecipients(Message.RecipientType type) throws MessagingException
Message.RecipientType.TO "To" Message.RecipientType.CC "Cc" Message.RecipientType.BCC "Bcc" MimeMessage.RecipientType.NEWSGROUPS "Newsgroups"
This implementation uses the getHeader
method
to obtain the requisite header field.
getRecipients
in class Message
type
- Type of recepientMessagingException
- if header could not
be retrievedAddressException
- if the header is misformattedheaders
,
Message.RecipientType.TO
,
Message.RecipientType.CC
,
Message.RecipientType.BCC
,
MimeMessage.RecipientType.NEWSGROUPS
public Address[] getAllRecipients() throws MessagingException
getAllRecipients
in class Message
MessagingException
- for failuresMessage.RecipientType.TO
,
Message.RecipientType.CC
,
Message.RecipientType.BCC
,
MimeMessage.RecipientType.NEWSGROUPS
public void setRecipients(Message.RecipientType type, Address[] addresses) throws MessagingException
null
, the corresponding
recipient field is removed.setRecipients
in class Message
type
- Recipient typeaddresses
- AddressesIllegalWriteException
- if the underlying
implementation does not support modification
of existing valuesjava.lang.IllegalStateException
- if this message is
obtained from a READ_ONLY folder.MessagingException
- for other failuresgetRecipients(jakarta.mail.Message.RecipientType)
public void setRecipients(Message.RecipientType type, java.lang.String addresses) throws MessagingException
null
, the corresponding
recipient field is removed.type
- Recipient typeaddresses
- AddressesAddressException
- if the attempt to parse the
addresses String failsIllegalWriteException
- if the underlying
implementation does not support modification
of existing valuesjava.lang.IllegalStateException
- if this message is
obtained from a READ_ONLY folder.MessagingException
- for other failuresgetRecipients(jakarta.mail.Message.RecipientType)
public void addRecipients(Message.RecipientType type, Address[] addresses) throws MessagingException
addRecipients
in class Message
type
- Recipient typeaddresses
- AddressesIllegalWriteException
- if the underlying
implementation does not support modification
of existing valuesjava.lang.IllegalStateException
- if this message is
obtained from a READ_ONLY folder.MessagingException
- for other failurespublic void addRecipients(Message.RecipientType type, java.lang.String addresses) throws MessagingException
type
- Recipient typeaddresses
- AddressesAddressException
- if the attempt to parse the
addresses String failsIllegalWriteException
- if the underlying
implementation does not support modification
of existing valuesjava.lang.IllegalStateException
- if this message is
obtained from a READ_ONLY folder.MessagingException
- for other failurespublic Address[] getReplyTo() throws MessagingException
getFrom
method is called and its value is returned.
This implementation uses the getHeader
method
to obtain the requisite header field.getReplyTo
in class Message
MessagingException
- for failuresheaders
public void setReplyTo(Address[] addresses) throws MessagingException
null
, this header is removed.setReplyTo
in class Message
addresses
- addresses to which replies should be directedIllegalWriteException
- if the underlying
implementation does not support modification
of existing valuesjava.lang.IllegalStateException
- if this message is
obtained from a READ_ONLY folder.MessagingException
- for other failurespublic java.lang.String getSubject() throws MessagingException
If the subject is encoded as per RFC 2047, it is decoded and converted into Unicode. If the decoding or conversion fails, the raw data is returned as is.
This implementation uses the getHeader
method
to obtain the requisite header field.
getSubject
in class Message
MessagingException
- for failuresheaders
public void setSubject(java.lang.String subject) throws MessagingException
The application must ensure that the subject does not contain any line breaks.
Note that if the charset encoding process fails, a MessagingException is thrown, and an UnsupportedEncodingException is included in the chain of nested exceptions within the MessagingException.
setSubject
in class Message
subject
- The subjectIllegalWriteException
- if the underlying
implementation does not support modification
of existing valuesjava.lang.IllegalStateException
- if this message is
obtained from a READ_ONLY folder.MessagingException
- for other failurespublic void setSubject(java.lang.String subject, java.lang.String charset) throws MessagingException
The application must ensure that the subject does not contain any line breaks.
Note that if the charset encoding process fails, a MessagingException is thrown, and an UnsupportedEncodingException is included in the chain of nested exceptions within the MessagingException.
subject
- The subjectcharset
- The charsetIllegalWriteException
- if the underlying
implementation does not support modification
of existing valuesjava.lang.IllegalStateException
- if this message is
obtained from a READ_ONLY folder.MessagingException
- for other failurespublic java.util.Date getSentDate() throws MessagingException
This implementation uses the getHeader
method
to obtain the requisite header field.
getSentDate
in class Message
MessagingException
- for failurespublic void setSentDate(java.util.Date d) throws MessagingException
null
, the existing "Date" field is removed.setSentDate
in class Message
d
- the sent date of this messageIllegalWriteException
- if the underlying
implementation does not support modificationjava.lang.IllegalStateException
- if this message is
obtained from a READ_ONLY folder.MessagingException
- for other failurespublic java.util.Date getReceivedDate() throws MessagingException
null
if this date cannot be obtained. Note that RFC 822 does not define a field for the received date. Hence only implementations that can provide this date need return a valid value.
This implementation returns null
.
getReceivedDate
in class Message
MessagingException
- for failurespublic int getSize() throws MessagingException
Note that this number may not be an exact measure of the content size and may or may not account for any transfer encoding of the content.
This implementation returns the size of the content
array (if not null), or, if contentStream
is not
null, and the available
method returns a positive
number, it returns that number as the size. Otherwise, it returns
-1.
getSize
in interface Part
MessagingException
- for failurespublic int getLineCount() throws MessagingException
Note that this number may not be an exact measure of the content length and may or may not account for any transfer encoding of the content.
This implementation returns -1.
getLineCount
in interface Part
MessagingException
- for failurespublic java.lang.String getContentType() throws MessagingException
This implementation uses the getHeader
method
to obtain the requisite header field.
getContentType
in interface Part
MessagingException
- for failuresDataHandler
public boolean isMimeType(java.lang.String mimeType) throws MessagingException
primaryType
and
subType
.
The parameters of the content types are ignored.
For example, this method will return true
when
comparing a Part of content type "text/plain"
with "text/plain; charset=foobar".
If the subType
of mimeType
is the
special character '*', then the subtype is ignored during the
comparison.
isMimeType
in interface Part
mimeType
- the MIME type to checkMessagingException
- for failurespublic java.lang.String getDisposition() throws MessagingException
If the Content-Disposition field is unavailable,
null
is returned.
This implementation uses the getHeader
method
to obtain the requisite header field.
getDisposition
in interface Part
MessagingException
- for failuresPart.ATTACHMENT
,
Part.INLINE
,
Part.getFileName()
public void setDisposition(java.lang.String disposition) throws MessagingException
setDisposition
in interface Part
disposition
- disposition of this partIllegalWriteException
- if the underlying
implementation does not support modificationjava.lang.IllegalStateException
- if this message is
obtained from a READ_ONLY folder.MessagingException
- for other failuresPart.ATTACHMENT
,
Part.INLINE
,
Part.setFileName(java.lang.String)
public java.lang.String getEncoding() throws MessagingException
null
if the header is unavailable
or its value is absent.
This implementation uses the getHeader
method
to obtain the requisite header field.
getEncoding
in interface MimePart
MessagingException
- for failurespublic java.lang.String getContentID() throws MessagingException
null
if the field is unavailable or its value is
absent.
This implementation uses the getHeader
method
to obtain the requisite header field.
getContentID
in interface MimePart
MessagingException
- for failurespublic void setContentID(java.lang.String cid) throws MessagingException
cid
parameter is null, any existing
"Content-ID" is removed.cid
- the content IDIllegalWriteException
- if the underlying
implementation does not support modificationjava.lang.IllegalStateException
- if this message is
obtained from a READ_ONLY folder.MessagingException
- for other failurespublic java.lang.String getContentMD5() throws MessagingException
null
if this field is unavailable or its value
is absent.
This implementation uses the getHeader
method
to obtain the requisite header field.
getContentMD5
in interface MimePart
MessagingException
- for failurespublic void setContentMD5(java.lang.String md5) throws MessagingException
setContentMD5
in interface MimePart
md5
- the MD5 valueIllegalWriteException
- if the underlying
implementation does not support modificationjava.lang.IllegalStateException
- if this message is
obtained from a READ_ONLY folder.MessagingException
- for other failurespublic java.lang.String getDescription() throws MessagingException
If the Content-Description field is encoded as per RFC 2047, it is decoded and converted into Unicode. If the decoding or conversion fails, the raw data is returned as-is
This implementation uses the getHeader
method
to obtain the requisite header field.
getDescription
in interface Part
MessagingException
- for failurespublic void setDescription(java.lang.String description) throws MessagingException
null
, then any
existing "Content-Description" fields are removed. If the description contains non US-ASCII characters, it will be encoded using the platform's default charset. If the description contains only US-ASCII characters, no encoding is done and it is used as-is.
Note that if the charset encoding process fails, a MessagingException is thrown, and an UnsupportedEncodingException is included in the chain of nested exceptions within the MessagingException.
setDescription
in interface Part
description
- content-descriptionIllegalWriteException
- if the underlying
implementation does not support modificationjava.lang.IllegalStateException
- if this message is
obtained from a READ_ONLY folder.MessagingException
- An
UnsupportedEncodingException may be included
in the exception chain if the charset
conversion fails.public void setDescription(java.lang.String description, java.lang.String charset) throws MessagingException
null
, then any
existing "Content-Description" fields are removed. If the description contains non US-ASCII characters, it will be encoded using the specified charset. If the description contains only US-ASCII characters, no encoding is done and it is used as-is.
Note that if the charset encoding process fails, a MessagingException is thrown, and an UnsupportedEncodingException is included in the chain of nested exceptions within the MessagingException.
description
- Descriptioncharset
- Charset for encodingIllegalWriteException
- if the underlying
implementation does not support modificationjava.lang.IllegalStateException
- if this message is
obtained from a READ_ONLY folder.MessagingException
- An
UnsupportedEncodingException may be included
in the exception chain if the charset
conversion fails.public java.lang.String[] getContentLanguage() throws MessagingException
null
if this field is unavailable
or its value is absent.
This implementation uses the getHeader
method
to obtain the requisite header field.
getContentLanguage
in interface MimePart
MessagingException
- for failurespublic void setContentLanguage(java.lang.String[] languages) throws MessagingException
setContentLanguage
in interface MimePart
languages
- array of language tagsIllegalWriteException
- if the underlying
implementation does not support modificationjava.lang.IllegalStateException
- if this message is
obtained from a READ_ONLY folder.MessagingException
- for other failurespublic java.lang.String getMessageID() throws MessagingException
The default implementation provided here uses the
getHeader
method to return the value of the
"Message-ID" field.
MessagingException
- if the retrieval of this field
causes any exception.MessageIDTerm
public java.lang.String getFileName() throws MessagingException
Returns the value of the "filename" parameter from the
"Content-Disposition" header field of this message. If it's
not available, returns the value of the "name" parameter from
the "Content-Type" header field of this BodyPart.
Returns null
if both are absent.
If the mail.mime.encodefilename
System property
is set to true, the MimeUtility.decodeText
method will be used to decode the
filename. While such encoding is not supported by the MIME
spec, many mailers use this technique to support non-ASCII
characters in filenames. The default value of this property
is false.
getFileName
in interface Part
MessagingException
- for failurespublic void setFileName(java.lang.String filename) throws MessagingException
Sets the "filename" parameter of the "Content-Disposition" header field of this message.
If the mail.mime.encodefilename
System property
is set to true, the MimeUtility.encodeText
method will be used to encode the
filename. While such encoding is not supported by the MIME
spec, many mailers use this technique to support non-ASCII
characters in filenames. The default value of this property
is false.
setFileName
in interface Part
filename
- Filename to associate with this partIllegalWriteException
- if the underlying
implementation does not support modificationjava.lang.IllegalStateException
- if this message is
obtained from a READ_ONLY folder.MessagingException
- for other failurespublic java.io.InputStream getInputStream() throws java.io.IOException, MessagingException
This implementation obtains the input stream from the DataHandler,
that is, it invokes getDataHandler().getInputStream()
.
getInputStream
in interface Part
java.io.IOException
- this is typically thrown by the
DataHandler. Refer to the documentation for
jakarta.activation.DataHandler for more details.MessagingException
- for other failuresgetContentStream()
,
DataHandler.getInputStream()
protected java.io.InputStream getContentStream() throws MessagingException
This implementation returns a SharedInputStream, if
contentStream
is not null. Otherwise, it
returns a ByteArrayInputStream constructed
out of the content
byte array.
MessagingException
- for failurescontent
public java.io.InputStream getRawInputStream() throws MessagingException
getInputStream
method or getContent
method
from returning the correct data. In such a case the application may
use this method and attempt to decode the raw data itself.
This implementation simply calls the getContentStream
method.
MessagingException
- for failuresgetInputStream()
,
getContentStream()
public DataHandler getDataHandler() throws MessagingException
The implementation provided here works approximately as follows.
Note the use of the getContentStream
method to
generate the byte stream for the content. Also note that
any transfer-decoding is done automatically within this method.
getDataHandler() { if (dh == null) { dh = new DataHandler(new MimePartDataSource(this)); } return dh; } class MimePartDataSource implements DataSource { public getInputStream() { return MimeUtility.decode( getContentStream(), getEncoding()); } .... <other DataSource methods> }
getDataHandler
in interface Part
MessagingException
- for failurespublic java.lang.Object getContent() throws java.io.IOException, MessagingException
This implementation obtains the content from the DataHandler,
that is, it invokes getDataHandler().getContent()
.
If the content is a Multipart or Message object and was created by
parsing a stream, the object is cached and returned in subsequent
calls so that modifications to the content will not be lost.
getContent
in interface Part
java.io.IOException
- this is typically thrown by the
DataHandler. Refer to the documentation for
jakarta.activation.DataHandler for more details.MessagingException
- for other failuresPart
,
DataHandler.getContent()
public void setDataHandler(DataHandler dh) throws MessagingException
setDataHandler
in interface Part
dh
- The DataHandler for the content.IllegalWriteException
- if the underlying
implementation does not support modificationjava.lang.IllegalStateException
- if this message is
obtained from a READ_ONLY folder.MessagingException
- for other failurespublic void setContent(java.lang.Object o, java.lang.String type) throws MessagingException
The content is wrapped in a DataHandler object. Note that a
DataContentHandler class for the specified type should be
available to the JavaMail implementation for this to work right.
i.e., to do setContent(foobar, "application/x-foobar")
,
a DataContentHandler for "application/x-foobar" should be installed.
Refer to the Java Activation Framework for more information.
setContent
in interface Part
o
- the content objecttype
- Mime type of the objectIllegalWriteException
- if the underlying
implementation does not support modification of
existing valuesjava.lang.IllegalStateException
- if this message is
obtained from a READ_ONLY folder.MessagingException
- for other failurespublic void setText(java.lang.String text) throws MessagingException
Note that there may be a performance penalty if
text
is large, since this method may have
to scan all the characters to determine what charset to
use.
If the charset is already known, use the
setText
method that takes the charset parameter.
setText
in interface MimePart
setText
in interface Part
text
- the text content to setMessagingException
- if an error occurssetText(String text, String charset)
public void setText(java.lang.String text, java.lang.String charset) throws MessagingException
setText
in interface MimePart
text
- the text content to setcharset
- the charset to use for the textMessagingException
- if an error occurspublic void setText(java.lang.String text, java.lang.String charset, java.lang.String subtype) throws MessagingException
setText
in interface MimePart
text
- the text content to setcharset
- the charset to use for the textsubtype
- the MIME subtype to use (e.g., "html")MessagingException
- if an error occurspublic void setContent(Multipart mp) throws MessagingException
setContent
in interface Part
mp
- The multipart object that is the Message's contentIllegalWriteException
- if the underlying
implementation does not support modification of
existing valuesjava.lang.IllegalStateException
- if this message is
obtained from a READ_ONLY folder.MessagingException
- for other failurespublic Message reply(boolean replyToAll) throws MessagingException
If replyToAll
is set, the new Message will be addressed
to all recipients of this message. Otherwise, the reply will be
addressed to only the sender of this message (using the value
of the getReplyTo
method).
The "Subject" field is filled in with the original subject
prefixed with "Re:" (unless it already starts with "Re:").
The "In-Reply-To" header is set in the new message if this
message has a "Message-Id" header. The ANSWERED
flag is set in this message.
The current implementation also sets the "References" header
in the new message to include the contents of the "References"
header (or, if missing, the "In-Reply-To" header) in this message,
plus the contents of the "Message-Id" header of this message,
as described in RFC 2822.
reply
in class Message
replyToAll
- reply should be sent to all recipients
of this messageMessagingException
- for failurespublic Message reply(boolean replyToAll, boolean setAnswered) throws MessagingException
If replyToAll
is set, the new Message will be addressed
to all recipients of this message. Otherwise, the reply will be
addressed to only the sender of this message (using the value
of the getReplyTo
method).
If setAnswered
is set, the
ANSWERED
flag is set
in this message.
The "Subject" field is filled in with the original subject prefixed with "Re:" (unless it already starts with "Re:"). The "In-Reply-To" header is set in the new message if this message has a "Message-Id" header. The current implementation also sets the "References" header in the new message to include the contents of the "References" header (or, if missing, the "In-Reply-To" header) in this message, plus the contents of the "Message-Id" header of this message, as described in RFC 2822.
replyToAll
- reply should be sent to all recipients
of this messagesetAnswered
- set the ANSWERED flag in this message?MessagingException
- for failurespublic void writeTo(java.io.OutputStream os) throws java.io.IOException, MessagingException
Note that, depending on how the messag was constructed, it may use a variety of line termination conventions. Generally the output should be sent through an appropriate FilterOutputStream that converts the line terminators to the desired form, either CRLF for MIME compatibility and for use in Internet protocols, or the local platform's line terminator for storage in a local text file.
This implementation calls the writeTo(OutputStream,
String[])
method with a null ignore list.
writeTo
in interface Part
os
- the stream to write tojava.io.IOException
- if an error occurs writing to the stream
or if an error is generated by the
jakarta.activation layer.MessagingException
- for other failuresDataHandler.writeTo(java.io.OutputStream)
public void writeTo(java.io.OutputStream os, java.lang.String[] ignoreList) throws java.io.IOException, MessagingException
saved
flag is not set,
the saveChanges
method is called.
If the modified
flag is not
set and the content
array is not null, the
content
array is written directly, after
writing the appropriate message headers.os
- the stream to write toignoreList
- the headers to not include in the outputjava.io.IOException
- if an error occurs writing to the stream
or if an error is generated by the
jakarta.activation layer.MessagingException
- for other failuresDataHandler.writeTo(java.io.OutputStream)
public java.lang.String[] getHeader(java.lang.String name) throws MessagingException
This implementation obtains the headers from the
headers
InternetHeaders object.
getHeader
in interface Part
name
- name of headerMessagingException
- for failuresMimeUtility
public java.lang.String getHeader(java.lang.String name, java.lang.String delimiter) throws MessagingException
null
, only the first header is
returned.getHeader
in interface MimePart
name
- the name of this headerdelimiter
- separator between valuesMessagingException
- for failurespublic void setHeader(java.lang.String name, java.lang.String value) throws MessagingException
setHeader
in interface Part
name
- header namevalue
- header valueIllegalWriteException
- if the underlying
implementation does not support modificationjava.lang.IllegalStateException
- if this message is
obtained from a READ_ONLY folder.MessagingException
- for other failuresMimeUtility
public void addHeader(java.lang.String name, java.lang.String value) throws MessagingException
addHeader
in interface Part
name
- header namevalue
- header valueIllegalWriteException
- if the underlying
implementation does not support modificationjava.lang.IllegalStateException
- if this message is
obtained from a READ_ONLY folder.MessagingException
- for other failuresMimeUtility
public void removeHeader(java.lang.String name) throws MessagingException
removeHeader
in interface Part
name
- the name of this headerIllegalWriteException
- if the underlying
implementation does not support modificationjava.lang.IllegalStateException
- if this message is
obtained from a READ_ONLY folder.MessagingException
- for other failurespublic java.util.Enumeration<Header> getAllHeaders() throws MessagingException
Note that certain headers may be encoded as per RFC 2047 if they contain non US-ASCII characters and these should be decoded.
This implementation obtains the headers from the
headers
InternetHeaders object.
getAllHeaders
in interface Part
MessagingException
- for failuresMimeUtility
public java.util.Enumeration<Header> getMatchingHeaders(java.lang.String[] names) throws MessagingException
headers
InternetHeaders object.getMatchingHeaders
in interface Part
names
- the headers to matchMessagingException
- for failurespublic java.util.Enumeration<Header> getNonMatchingHeaders(java.lang.String[] names) throws MessagingException
headers
InternetHeaders object.getNonMatchingHeaders
in interface Part
names
- the headers to not matchMessagingException
- for failurespublic void addHeaderLine(java.lang.String line) throws MessagingException
addHeaderLine
in interface MimePart
line
- the line to addIllegalWriteException
- if the underlying
implementation does not support modificationjava.lang.IllegalStateException
- if this message is
obtained from a READ_ONLY folder.MessagingException
- for other failurespublic java.util.Enumeration<java.lang.String> getAllHeaderLines() throws MessagingException
getAllHeaderLines
in interface MimePart
MessagingException
- for failurespublic java.util.Enumeration<java.lang.String> getMatchingHeaderLines(java.lang.String[] names) throws MessagingException
getMatchingHeaderLines
in interface MimePart
names
- the headers to returnMessagingException
- for failurespublic java.util.Enumeration<java.lang.String> getNonMatchingHeaderLines(java.lang.String[] names) throws MessagingException
getNonMatchingHeaderLines
in interface MimePart
names
- the headers to not returnMessagingException
- for failurespublic Flags getFlags() throws MessagingException
Flags
object containing the flags for
this message. Note that a clone of the internal Flags object is returned, so modifying the returned Flags object will not affect the flags of this message.
getFlags
in class Message
MessagingException
- for failuresFlags
public boolean isSet(Flags.Flag flag) throws MessagingException
flag
argument is set in this message.
This implementation checks this message's internal
flags
object.
isSet
in class Message
flag
- the flagMessagingException
- for failuresFlags.Flag
,
Flags.Flag.ANSWERED
,
Flags.Flag.DELETED
,
Flags.Flag.DRAFT
,
Flags.Flag.FLAGGED
,
Flags.Flag.RECENT
,
Flags.Flag.SEEN
public void setFlags(Flags flag, boolean set) throws MessagingException
This implementation modifies the flags
field.
setFlags
in class Message
flag
- Flags object containing the flags to be setset
- the value to be setIllegalWriteException
- if the underlying
implementation does not support modificationjava.lang.IllegalStateException
- if this message is
obtained from a READ_ONLY folder.MessagingException
- for other failuresMessageChangedEvent
public void saveChanges() throws MessagingException
If any part of a message's headers or contents are changed,
saveChanges
must be called to ensure that those
changes are permanent. Otherwise, any such modifications may or
may not be saved, depending on the folder implementation.
Messages obtained from folders opened READ_ONLY should not be modified and saveChanges should not be called on such messages.
This method sets the modified
flag to true, the
save
flag to true, and then calls the
updateHeaders
method.
saveChanges
in class Message
IllegalWriteException
- if the underlying
implementation does not support modificationjava.lang.IllegalStateException
- if this message is
obtained from a READ_ONLY folder.MessagingException
- for other failuresprotected void updateMessageID() throws MessagingException
updateHeaders
and allows a subclass
to override only the algorithm for choosing a Message-ID.MessagingException
- for failuresprotected void updateHeaders() throws MessagingException
saveChanges
method to actually
update the MIME headers. The implementation here sets the
Content-Transfer-Encoding
header (if needed
and not already set), the Date
header (if
not already set), the MIME-Version
header
and the Message-ID
header. Also, if the content
of this message is a MimeMultipart
, its
updateHeaders
method is called.
If the cachedContent
field is not null (that is,
it references a Multipart or Message object), then
that object is used to set a new DataHandler, any
stream data used to create this object is discarded,
and the cachedContent
field is cleared.
IllegalWriteException
- if the underlying
implementation does not support modificationjava.lang.IllegalStateException
- if this message is
obtained from a READ_ONLY folder.MessagingException
- for other failuresprotected InternetHeaders createInternetHeaders(java.io.InputStream is) throws MessagingException
is
- the InputStream to read the headers fromMessagingException
- for failuresprotected MimeMessage createMimeMessage(Session session) throws MessagingException
session
- the Session to use for the new messageMessagingException
- for failures


The Akan people of Ghana name their children after the day of the week
they were born.
This web application will takes a user's birthday and calculates the day of the week they were born and then depending on their gender outputs their Akan Name. Akan names are derived from Ghanian culture. Frequently in Ghana, children are given their first name as a 'day name' which corresponds to the day in the week they were born.
Here are some Ghanaian Names:
Female
Sunday: Akosua
Monday: Adwoa
Tuesday: Abenaa
Wednesday: Akua
Thursday: Yaa
Friday: Afua
Saturday: Ama
Male
Sunday: Kwasi
Monday: Kwadwo
Tuesday: Kwabena
Wednesday: Kwaku
Thursday: Yaw
Friday: Kofi
Saturday: Kwame
These "day names" have further meanings concerning the soul and character of the person.


ATHANDIA
Account Setting
Notification
Favorite Projects
Search for Others
My Projects
All projects(tip:use search to navigate certain pro):
Way Back to Top


This API documentation is inspired by the beautifully designed API of unsplash.
If an error occurs, whether on the server or client side, the error message(s) will be returned in an errors array. For example:
422 Unprocessable Entity
{
"errors": ["Username is missing", "Password cannot be blank"]
}


×
+
trkern.github.io/fart
F
ormal
a
lgebra
R
⚙
easoning
T
oolkit
⚠ Under Construction! Check Back in a Year! ⚠