Package core.components
Class Station
- java.lang.Object
-
- core.components.Station
-
- Direct Known Subclasses:
PlusStation
,StandardStation
public abstract class Station extends java.lang.Object
The Station class : This class defines what stations are and how they behave
-
-
Constructor Summary
Constructors Constructor Description Station(java.awt.Point coordinate, boolean onService, java.util.List<ParkingSlot> parkingSlots)
A (simpler) Station constructorStation(java.awt.Point coordinate, boolean onService, java.util.List<ParkingSlot> parkingSlots, double money, int numberOfDroppings)
A Station constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMoney(double money)
This methods adds money in the stationvoid
addNumberOfDroppings(int number)
This methods adds the number of droppingsvoid
addNumberOfRentings(int number)
This methods adds the number of rentingsboolean
equals(java.lang.Object o)
equals method for Stationjava.awt.Point
getCoordinate()
getter for coordinateParkingSlot
getElectricalParkingSlot()
This method get an electrical parking slot (that is a parking slot that has an electrical bicycle) if there is anyboolean
getExistTypeBike(Bicycle bicycle)
This method will return a boolean that represents the existence or not of give bicycle typeint
getId()
getter for idParkingSlot
getMechanicalParkingSlot()
This method get a mechanical parking slot (that is a parking slot that has an mechanical bicycle) if there is anydouble
getMoney()
getter for the money parameterint
getNumberOfDroppings()
getter for the number of droppings (or complete locations)int
getNumberOfRentings()
getter for the number of rentingsstatic int
getNumberOfStations()
getter for the number of stationsParkingSlot
getOneFreeSlot()
This method is a getter for a free slot.java.util.List<ParkingSlot>
getParkingSlots()
getter for the list of parking slotsParkingSlot
getParkingSlotTypeBicycle(Bicycle bicycle)
This method gets a parking slot for the type of bicycle that is passed as argumentTerminal
getStationTerminal()
getter for the terminal of the stationboolean
hasAvailableElectricalBicycle()
This method is used to see if a station has an available electrical bicycle to be rentedboolean
hasAvailableMechanicalBicycle()
This method is used to see if a station has an available mechanical bicycle to be rentedint
hashCode()
hashCode method for Stationboolean
hasOneSlotFree()
This method checks if a station has a free slotboolean
isOnService()
getter for onService parametervoid
removeMoney(double money)
This methods removes money in the stationvoid
setCoordinate(java.awt.Point coordinate)
setter for coordinate (maybe the relevance of this method could be discussed)void
setMoney(double money)
setter for the money parametervoid
setNumberOfDroppings(int numberOfDroppings)
setter for the number of droppingsvoid
setNumberOfRentings(int numberOfRentings)
setter for the number of rentingsvoid
setOnService(boolean onService)
setter for onService parametervoid
setParkingSlots(java.util.List<ParkingSlot> parkingSlots)
setter for parkingSlotsjava.lang.String
toString()
toString method for Station
-
-
-
Constructor Detail
-
Station
public Station(java.awt.Point coordinate, boolean onService, java.util.List<ParkingSlot> parkingSlots, double money, int numberOfDroppings)
A Station constructor- Parameters:
coordinate
- coordinate that will be used to place a plus stationonService
- a boolean parameter to know if the station will be on serviceparkingSlots
- a list of parking slots that will populate the plus stationmoney
- the initial money that the station will havenumberOfDroppings
- the number of droppings (or locations)
-
Station
public Station(java.awt.Point coordinate, boolean onService, java.util.List<ParkingSlot> parkingSlots)
A (simpler) Station constructor- Parameters:
coordinate
- coordinate that will be used to place a plus stationonService
- a boolean parameter to know if the station will be on serviceparkingSlots
- a list of parking slots that will populate the plus station
-
-
Method Detail
-
getId
public int getId()
getter for id- Returns:
- the id
-
isOnService
public boolean isOnService()
getter for onService parameter- Returns:
- onService parameter
-
setOnService
public void setOnService(boolean onService)
setter for onService parameter- Parameters:
onService
- a boolean that will be used to set onService parameter
-
getCoordinate
public java.awt.Point getCoordinate()
getter for coordinate- Returns:
- coordinate
-
setCoordinate
public void setCoordinate(java.awt.Point coordinate)
setter for coordinate (maybe the relevance of this method could be discussed)- Parameters:
coordinate
- coordinate that will be used to set the station coordinate
-
getParkingSlots
public java.util.List<ParkingSlot> getParkingSlots()
getter for the list of parking slots- Returns:
- parkingSlots (a list of parking slots)
-
setParkingSlots
public void setParkingSlots(java.util.List<ParkingSlot> parkingSlots)
setter for parkingSlots- Parameters:
parkingSlots
- a list of parking slots
-
getStationTerminal
public Terminal getStationTerminal()
getter for the terminal of the station- Returns:
- the terminal object
-
getNumberOfStations
public static int getNumberOfStations()
getter for the number of stations- Returns:
- number of stations in the application
-
getMoney
public double getMoney()
getter for the money parameter- Returns:
- the total amount of money that stations has (it can be used to see the station profit)
-
setMoney
public void setMoney(double money)
setter for the money parameter- Parameters:
money
- the total amount of money that the station has
-
getNumberOfDroppings
public int getNumberOfDroppings()
getter for the number of droppings (or complete locations)- Returns:
- the number of droppings
-
setNumberOfDroppings
public void setNumberOfDroppings(int numberOfDroppings)
setter for the number of droppings- Parameters:
numberOfDroppings
- the number of complete locations (or droppings)
-
getNumberOfRentings
public int getNumberOfRentings()
getter for the number of rentings- Returns:
- the number of rentings
-
setNumberOfRentings
public void setNumberOfRentings(int numberOfRentings)
setter for the number of rentings- Parameters:
numberOfRentings
- the number of rentings to be used in the setting process
-
toString
public java.lang.String toString()
toString method for Station- Overrides:
toString
in classjava.lang.Object
- Returns:
- a string that represents the station
-
equals
public boolean equals(java.lang.Object o)
equals method for Station- Overrides:
equals
in classjava.lang.Object
- Parameters:
o
- an object- Returns:
- true or false
-
hashCode
public int hashCode()
hashCode method for Station- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hash(id, coordinate, onService, parkingSlots, terminal, money, numberOfDroppings, numberOfRentings)
-
getExistTypeBike
public boolean getExistTypeBike(Bicycle bicycle)
This method will return a boolean that represents the existence or not of give bicycle type- Parameters:
bicycle
- a bicycle object, either electrical or mechanical bicycle- Returns:
- true, if the station has a bicycle of the same type. false, otherwise
-
hasAvailableElectricalBicycle
public boolean hasAvailableElectricalBicycle()
This method is used to see if a station has an available electrical bicycle to be rented- Returns:
- true, if the station has an available electrical bicycle. false, otherwise
-
hasAvailableMechanicalBicycle
public boolean hasAvailableMechanicalBicycle()
This method is used to see if a station has an available mechanical bicycle to be rented- Returns:
- true, if the station has an available mechanical bicycle. false, otherwise
-
hasOneSlotFree
public boolean hasOneSlotFree()
This method checks if a station has a free slot- Returns:
- true, if the station has a free slot. false, otherwise
-
getOneFreeSlot
public ParkingSlot getOneFreeSlot()
This method is a getter for a free slot. If it has not a free slot, it returns null- Returns:
- a free slot if the station has any. null, otherwise
-
getParkingSlotTypeBicycle
public ParkingSlot getParkingSlotTypeBicycle(Bicycle bicycle)
This method gets a parking slot for the type of bicycle that is passed as argument- Parameters:
bicycle
- any bicycle in the application (can be electrical or mechanical)- Returns:
- a slot of the give bicycle if there is any. null, otherwise
-
getElectricalParkingSlot
public ParkingSlot getElectricalParkingSlot()
This method get an electrical parking slot (that is a parking slot that has an electrical bicycle) if there is any- Returns:
- an electrical parking slot if there is any in the station. null, otherwise
-
getMechanicalParkingSlot
public ParkingSlot getMechanicalParkingSlot()
This method get a mechanical parking slot (that is a parking slot that has an mechanical bicycle) if there is any- Returns:
- a mechanical parking slot if there is any in the station. null, otherwise
-
addMoney
public void addMoney(double money)
This methods adds money in the station- Parameters:
money
- The amount of money to be added to the station
-
removeMoney
public void removeMoney(double money)
This methods removes money in the station- Parameters:
money
- The amount of money to be removed from the station
-
addNumberOfDroppings
public void addNumberOfDroppings(int number)
This methods adds the number of droppings- Parameters:
number
- The number that will be used to increase the number of droppings
-
addNumberOfRentings
public void addNumberOfRentings(int number)
This methods adds the number of rentings- Parameters:
number
- The number that will be used to increase the number of rentings
-
-


module
Affine transformation matricesContents
- Reference
Used to apply two-dimensional geometric transformations like rotating and/or scaling to sprites and backgrounds.
Files
- file bn_affine_mat_scale_lut.h
- file bn_sprite_affine_mat_actions.h
- file bn_sprite_affine_mat_attributes.h
- file bn_sprite_affine_mat_attributes_hblank_effect_ptr.h
- file bn_sprite_affine_mat_pa_register_hblank_effect_ptr.h
- file bn_sprite_affine_mat_pb_register_hblank_effect_ptr.h
- file bn_sprite_affine_mat_pc_register_hblank_effect_ptr.h
- file bn_sprite_affine_mat_pd_register_hblank_effect_ptr.h
- file bn_sprite_affine_mat_ptr.h
- file bn_sprite_affine_mats.h
Namespaces
- namespace bn
- Main butano namespace.
- namespace bn::sprite_affine_mats
- Sprite affine transformation matrices related functions.
Classes
- class bn::sprite_affine_mat_rotation_manager
- Manages the rotation angle of a sprite_
affine_ mat_ ptr. - class bn::sprite_affine_mat_rotate_by_action
- Modifies the rotation angle of a sprite_
affine_ mat_ ptr by delta_rotation_angle. When the rotation angle is over 360, it goes back to 0 and vice versa. - class bn::sprite_affine_mat_rotate_to_action
- Modifies the rotation angle of a sprite_
affine_ mat_ ptr until it has a given state. - class bn::sprite_affine_mat_rotate_loop_action
- Modifies the rotation angle of a sprite_
affine_ mat_ ptr from a minimum to a maximum. When the rotation angle is equal to the given final state, it goes back to its initial state and vice versa. - class bn::sprite_affine_mat_rotate_toggle_action
- Changes the rotation angle of a sprite_
affine_ mat_ ptr when the action is updated a given number of times. - class bn::sprite_affine_mat_horizontal_scale_manager
- Manages the horizontal scale of a sprite_
affine_ mat_ ptr. - class bn::sprite_affine_mat_horizontal_scale_to_action
- Modifies the horizontal scale of a sprite_
affine_ mat_ ptr until it has a given state. - class bn::sprite_affine_mat_horizontal_scale_loop_action
- Modifies the horizontal scale of a sprite_
affine_ mat_ ptr from a minimum to a maximum. When the horizontal scale is equal to the given final state, it goes back to its initial state and vice versa. - class bn::sprite_affine_mat_horizontal_scale_toggle_action
- Changes the horizontal scale of a sprite_
affine_ mat_ ptr when the action is updated a given number of times. - class bn::sprite_affine_mat_vertical_scale_manager
- Manages the vertical scale of a sprite_
affine_ mat_ ptr. - class bn::sprite_affine_mat_vertical_scale_to_action
- Modifies the vertical scale of a sprite_
affine_ mat_ ptr until it has a given state. - class bn::sprite_affine_mat_vertical_scale_loop_action
- Modifies the vertical scale of a sprite_
affine_ mat_ ptr from a minimum to a maximum. When the vertical scale is equal to the given final state, it goes back to its initial state and vice versa. - class bn::sprite_affine_mat_vertical_scale_toggle_action
- Changes the vertical scale of a sprite_
affine_ mat_ ptr when the action is updated a given number of times. - class bn::sprite_affine_mat_scale_manager
- Manages the scale of a sprite_
affine_ mat_ ptr. - class bn::sprite_affine_mat_scale_to_action
- Modifies the scale of a sprite_
affine_ mat_ ptr until it has a given state. - class bn::sprite_affine_mat_scale_loop_action
- Modifies the scale of a sprite_
affine_ mat_ ptr from a minimum to a maximum. When the scale is equal to the given final state, it goes back to its initial state and vice versa. - class bn::sprite_affine_mat_scale_toggle_action
- Changes the scale of a sprite_
affine_ mat_ ptr when the action is updated a given number of times. - class bn::sprite_affine_mat_horizontal_flip_manager
- Manages if a sprite_
affine_ mat_ ptr is flipped in its horizontal axis or not. - class bn::sprite_affine_mat_horizontal_flip_toggle_action
- Toggles if a sprite_
affine_ mat_ ptr must be flipped in the horizontal axis or not when the action is updated a given number of times. - class bn::sprite_affine_mat_vertical_flip_manager
- Manages if a sprite_
affine_ mat_ ptr is flipped in its vertical axis or not. - class bn::sprite_affine_mat_vertical_flip_toggle_action
- Toggles if a sprite_
affine_ mat_ ptr must be flipped in the vertical axis or not when the action is updated a given number of times. - class bn::sprite_affine_mat_attributes
- Contains the attributes which define a sprite affine transformation matrix (created with sprite_
affine_ mat_ ptr static constructors). - class bn::sprite_affine_mat_attributes_hblank_effect_ptr
- std::shared_ptr like smart pointer that retains shared ownership of a H-Blank effect which changes the attributes of a sprite_
affine_ mat_ ptr in each screen horizontal line. -
template<>struct bn::hash<sprite_affine_mat_attributes_hblank_effect_ptr>
- Hash support for sprite_
affine_ mat_ attributes_ hblank_ effect_ ptr. - class bn::sprite_affine_mat_pa_register_hblank_effect_ptr
- std::shared_ptr like smart pointer that retains shared ownership of a H-Blank effect which changes the attributes or the values to commit to the first GBA register of a sprite_
affine_ mat_ ptr in each screen horizontal line. - class bn::sprite_affine_mat_pb_register_hblank_effect_ptr
- std::shared_ptr like smart pointer that retains shared ownership of a H-Blank effect which changes the attributes or the values to commit to the second GBA register of a sprite_
affine_ mat_ ptr in each screen horizontal line. - class bn::sprite_affine_mat_pc_register_hblank_effect_ptr
- std::shared_ptr like smart pointer that retains shared ownership of a H-Blank effect which changes the attributes or the values to commit to the third GBA register of a sprite_
affine_ mat_ ptr in each screen horizontal line. - class bn::sprite_affine_mat_pd_register_hblank_effect_ptr
- std::shared_ptr like smart pointer that retains shared ownership of a H-Blank effect which changes the attributes or the values to commit to the fourth GBA register of a sprite_
affine_ mat_ ptr in each screen horizontal line. - class bn::sprite_affine_mat_ptr
- std::shared_ptr like smart pointer that retains shared ownership of a sprite affine transformation matrix.
-
template<>struct bn::hash<sprite_affine_mat_ptr>
- Hash support for sprite_
affine_ mat_ ptr.
Functions
- auto create_affine_mat_scale_lut() -> array<uint16_t, 1025> constexpr
- Returns the LUT used to invert scale values in an affine transformation matrix.
Variables
- const array<uint16_t, 1025> affine_mat_scale_lut constexpr
- LUT used to invert scale values in an affine transformation matrix.
Function documentation
array<uint16_t, 1025> create_affine_mat_scale_lut() constexpr
#include <bn_affine_mat_scale_lut.h>
Returns the LUT used to invert scale values in an affine transformation matrix.
Variable documentation
const array<uint16_t, 1025> affine_mat_scale_lut constexpr
#include <bn_affine_mat_scale_lut.h>
LUT used to invert scale values in an affine transformation matrix.


[basin_nm]
Total
Pesticide
Total
Fertilizer
Average
Elevation
Percent
Glaciation
Modelled
Sediment Load
Observed
Sediment Load


About Me
For starters my name is Beau and I live in Illinois. I'm not going to go into much more detail as to where I live because, well, this is the internet. My interests and hobbies include programming (obviously), gaming, and occasionally working on my car. Two of those things I think I'm pretty good at, and I'll let you choose which ones you think they are. If I'm not doing any of those things odds are I'm either at school or work, life is pretty busy it turns out, who knew. Other miscellaneous things like music interests are rap/mid 2000's rock/classic rock, favorite TV shows are Orange is the New Black, Shameless, Breaking Bad, and a few others.
Why Programming?
Ever since I was little I've always had an interest in anything technology related. I grew up playing Halo on the Xbox, then eventually moved to the PC where I started to play Minecraft like a lot of other people. It was during this time that I realized that hosting servers and programming were absolutely fascinating to me. Being able to create something and then share it with the world, albeit a little nerve racking for me, is something that I really wanted to do. I started small in Minecraft, making a pretty basic plugin called Ore-Logger (which I never released). Minecraft is the main reason why I consider Java to be my main programming language. Although I've dabbled in a few others including Web (HTML/CSS/JS/PHP), Python, C++, and C#, Java has always been what peaked my interest the most.


Alien
It’s not a news, the introduction sequence of Alien is remarkable. Ridley Scott decided to spend a few minutes of the film wandering in an empty spaceship.
The story unfolds from an unanticipated wake up, but we just witness what is not happening before the event.
The sequence showcases the amazing production design: the industrial art by Ron Cobb, the icons (and more) designed by Moëbius. Even if they used technologies from the time of the filming, like CRT screens, this aesthetics became timeless, kind of retrofuturism.
The production was so thought and the fact that the director took the time to share and enjoy the art of the design team is wonderful.
It’s shorter than I remember, just three minutes in reality, but became iconic.
Back to the Future
The cinematography is splendid, the type design of the credits is ageless, the long shots are mastered, it's Zemekis of course. He's not afraid of cutting the long takes when needed.
The sequence is foreshadowing the plot, portraying the characters while depicting the film's subject: the time. And the scene ends with an explosion of 80s Power of love and skateboard.
Speed Racer
The Wachowskis proved their editing skills with Cloud of Atlas and Sense8 where the stories stay clear even if they jump between timelines, time zones and characters. But the introduction of Speed Racer is still their most flamboyant example.
Alternating between a present scene where Speed is racing against his big browser’s ghost, figuratively because he left the family and literally as a video game race ghost like and flashbacks presenting Speed.
The -flawless- alternation is classic but the most vivifying thing is the crescendo. The tension is building up and I'm just hooked until the last part. Tough to follow up on this but the film is showing incredible resources.
The sequence is 17 minutes non-stop of introduction to the characters and their traumas and to the unique and unconventional film style, all this during a race. Everything the film is about: race for family and respect.
As the first film of the duo after Matrix, it's a direct hit in the jaw, without any foreplay.
Booksmart
I just love the lines from Amy (Kaitlyn Dever) in the car and how she delivers them, and the stupidly free dance moves after. The short cameo of Maya Rudolph is the cherry on the cake.
Every time, I'm just watching the introduction, I can’t stop until Billie Lourd is yelling, "Keep it down out there!" a few minutes later.
Kung Fu Panda
I'm a geek for animation and I was in art school when the film came out. I studied this animated introduction and try to copy it. It reminds me the work of Genndy Tartakovsky on Samurai Jack but with even more time and/or budget. This balance between traditional 2D animation and computer particles and clothes animation has been rarely matched.
This intro just overcame the rest of the film, which aged poorly in comparison. It was high quality but that's the problem with 3D animation.
Reservoir Dogs
I don’t tip and back then, when I watched the film, I didn’t even know what a tip was but this debate about tipping stayed with me until today. This mundane talk with random people starts like a down-to-earth movie until the opening fades into Mr X bleeding and moaning in the backseat.
Only small details can give up the gangster side of the group: the suits, Mr Pink, the killing joke.
The cult opening of the men in black walking in the alley with a bad slow motion inspired so many. Easy to find it on a tee-shirt.
Amazing to see that the Tarantino openings aesthetic is already in place.
The Graduate
Tarantino has so many memorable opening scenes but the travelling from Jacky Brown resembles the opening of The Graduate (1967). Simon & Garfunkel's music, a zoom out shot in the plane and "one shot" on the moving walkway.
And the film ends with an incredible last shot, mixing hope, jubilation and meaninglessness, reprising the Sound of Silence.
Arrival
Another example of mirrored music, this time with Max Richter.
The trivia is that it was a temp track but none of Jóhann Jóhannsson’s attempts convince Villeneuve to replace it.
The end reflects the beginning with the same shot, same music. It’s an easy way to close a story but matches smartly the concept of the alien language in the movie.
Mr Right
This music is magic, perfect to wake up in a good mood, and Sam Rockwell's dance moves are pretty nice.
And …
I also think about Apocalypse Now and The Door’s This is the end. Funny for an intro, which is not funny at all.
The opening credits mixing music and slow motion of Watchmen. It’s almost the only original addition in this straight up adaptation of the comics.
I love the soundtrack by Daft Punk for Tron legacy. Weirdly, my favourite part of the film is everything outside the computer world and mainly the beginning, the instalment of the story and what happens since the first episode.
Conclusion
I took the luxury to skip the introduction in a post about introductions but I'll try to conclude.
The opening has to deliver the keys to comprehend the universe of the fiction. It has to introduce a tone, a style of narration, a world with its own new rules, characters and places.
It can be silent or dialogue heavy, truthful to the rest of the movie or not, personally, if I'm not hooked after it, it’s missing the point.
All films introductions I like hold the core feeling of what the film wants to tell: a hero’s dream or despair, a a yet untold world to explore, ….
Convey this very essence while welcoming the spectator is the purpose of the introduction.
Fin


| Package | Description |
|---|---|
| javax.mail |
The JavaMail™ API
provides classes that model a mail system.
|
| javax.mail.internet |
Classes specific to Internet mail systems.
|
| javax.mail.search |
Message search terms for the JavaMail API.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AuthenticationFailedException
This exception is thrown when the connect method on a Store or
Transport object fails due to an authentication failure (e.g.,
bad user name or password).
|
class |
FolderClosedException
This exception is thrown when a method is invoked on a Messaging object
and the Folder that owns that object has died due to some reason.
|
class |
FolderNotFoundException
This exception is thrown by Folder methods, when those
methods are invoked on a non existent folder.
|
class |
IllegalWriteException
The exception thrown when a write is attempted on a read-only attribute
of any Messaging object.
|
class |
MessageRemovedException
The exception thrown when an invalid method is invoked on an expunged
Message.
|
class |
MethodNotSupportedException
The exception thrown when a method is not supported by the
implementation
|
class |
NoSuchProviderException
This exception is thrown when Session attempts to instantiate a
Provider that doesn't exist.
|
class |
ReadOnlyFolderException
This exception is thrown when an attempt is made to open a folder
read-write access when the folder is marked read-only.
|
class |
SendFailedException
This exception is thrown when the message cannot be sent.
|
class |
StoreClosedException
This exception is thrown when a method is invoked on a Messaging object
and the Store that owns that object has died due to some reason.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Multipart.addBodyPart(BodyPart part)
Adds a Part to the multipart.
|
void |
Multipart.addBodyPart(BodyPart part,
int index)
Adds a BodyPart at position
index . |
abstract void |
Message.addFrom(Address[] addresses)
Add these addresses to the existing "From" attribute
|
void |
Part.addHeader(String header_name,
String header_value)
Add this value to the existing values for this header_name.
|
void |
Message.addRecipient(Message.RecipientType type,
Address address)
Add this recipient address to the existing ones of the given type.
|
abstract void |
Message.addRecipients(Message.RecipientType type,
Address[] addresses)
Add these recipient addresses to the existing ones of the given type.
|
abstract void |
Folder.appendMessages(Message[] msgs)
Append given Messages to this folder.
|
void |
Service.close()
Close this service and terminate its connection.
|
void |
Folder.close()
Close this Folder and expunge deleted messages.
|
abstract void |
Folder.close(boolean expunge)
Close this Folder.
|
void |
Service.connect()
A generic connect method that takes no parameters.
|
void |
Service.connect(String host,
int port,
String user,
String password)
Similar to connect(host, user, password) except a specific port
can be specified.
|
void |
Service.connect(String user,
String password)
Connect to the current host using the specified username
and password.
|
void |
Service.connect(String host,
String user,
String password)
Connect to the specified address.
|
void |
Folder.copyMessages(Message[] msgs,
Folder folder)
Copy the specified Messages from this Folder into another
Folder.
|
abstract boolean |
Folder.create(int type)
Create this folder on the Store.
|
abstract boolean |
Folder.delete(boolean recurse)
Delete this Folder.
|
abstract boolean |
Folder.exists()
Tests if this folder physically exists on the Store.
|
abstract Message[] |
Folder.expunge()
Expunge (permanently remove) messages marked DELETED.
|
void |
Folder.fetch(Message[] msgs,
FetchProfile fp)
Prefetch the items specified in the FetchProfile for the
given Messages.
|
Enumeration<Header> |
Part.getAllHeaders()
Return all the headers from this part as an Enumeration of
Header objects.
|
Address[] |
Message.getAllRecipients()
Get all the recipient addresses for the message.
|
BodyPart |
MultipartDataSource.getBodyPart(int index)
Get the specified Part.
|
BodyPart |
Multipart.getBodyPart(int index)
Get the specified Part.
|
Object |
Part.getContent()
Return the content as a Java object.
|
String |
Part.getContentType()
Returns the Content-Type of the content of this part.
|
int |
Multipart.getCount()
Return the number of enclosed BodyPart objects.
|
DataHandler |
Part.getDataHandler()
Return a DataHandler for the content within this part.
|
abstract Folder |
Store.getDefaultFolder()
Returns a Folder object that represents the 'root' of
the default namespace presented to the user by the Store.
|
int |
Folder.getDeletedMessageCount()
Get the number of deleted messages in this Folder.
|
String |
Part.getDescription()
Return a description String for this part.
|
String |
Part.getDisposition()
Return the disposition of this part.
|
String |
Part.getFileName()
Get the filename associated with this part, if possible.
|
abstract Flags |
Message.getFlags()
Returns a
Flags object containing the flags for
this message. |
abstract Folder |
Store.getFolder(String name)
Return the Folder object corresponding to the given name.
|
abstract Folder |
Folder.getFolder(String name)
Return the Folder object corresponding to the given name.
|
abstract Folder |
Store.getFolder(URLName url)
Return a closed Folder object, corresponding to the given
URLName.
|
Folder |
Session.getFolder(URLName url)
Get a closed Folder object for the given URLName.
|
abstract Address[] |
Message.getFrom()
Returns the "From" attribute.
|
String[] |
Part.getHeader(String header_name)
Get all the headers for this header name.
|
InputStream |
Part.getInputStream()
Return an input stream for this part's "content".
|
int |
Part.getLineCount()
Return the number of lines in the content of this part.
|
Enumeration<Header> |
Part.getMatchingHeaders(String[] header_names)
Return matching headers from this part as an Enumeration of
Header objects.
|
abstract Message |
Folder.getMessage(int msgnum)
Get the Message object corresponding to the given message
number.
|
Message |
UIDFolder.getMessageByUID(long uid)
Get the Message corresponding to the given UID.
|
abstract int |
Folder.getMessageCount()
Get total number of messages in this Folder.
|
Message[] |
Folder.getMessages()
Get all Message objects from this Folder.
|
Message[] |
Folder.getMessages(int[] msgnums)
Get the Message objects for message numbers specified in
the array.
|
Message[] |
Folder.getMessages(int start,
int end)
Get the Message objects for message numbers ranging from start
through end, both start and end inclusive.
|
Message[] |
UIDFolder.getMessagesByUID(long[] uids)
Get the Messages specified by the given array of UIDs.
|
Message[] |
UIDFolder.getMessagesByUID(long start,
long end)
Get the Messages specified by the given range.
|
int |
Folder.getNewMessageCount()
Get the number of new messages in this Folder.
|
Enumeration<Header> |
Part.getNonMatchingHeaders(String[] header_names)
Return non-matching headers from this envelope as an Enumeration
of Header objects.
|
abstract Folder |
Folder.getParent()
Returns the parent folder of this folder.
|
Folder[] |
Store.getPersonalNamespaces()
Return a set of folders representing the personal namespaces
for the current user.
|
Quota[] |
QuotaAwareStore.getQuota(String folder)
Get the quotas for the named folder.
|
abstract Date |
Message.getReceivedDate()
Get the date this message was received.
|
abstract Address[] |
Message.getRecipients(Message.RecipientType type)
Get all the recipient addresses of the given type.
|
Address[] |
Message.getReplyTo()
Get the addresses to which replies should be directed.
|
abstract Date |
Message.getSentDate()
Get the date this message was sent.
|
abstract char |
Folder.getSeparator()
Return the delimiter character that separates this Folder's pathname
from the names of immediate subfolders.
|
Folder[] |
Store.getSharedNamespaces()
Return a set of folders representing the shared namespaces.
|
int |
Part.getSize()
Return the size of the content of this part in bytes.
|
abstract String |
Message.getSubject()
Get the subject of this message.
|
abstract int |
Folder.getType()
Returns the type of this Folder, that is, whether this folder can hold
messages or subfolders or both.
|
long |
UIDFolder.getUID(Message message)
Get the UID for the specified message.
|
long |
UIDFolder.getUIDNext()
Returns the predicted UID that will be assigned to the
next message that is appended to this folder.
|
long |
UIDFolder.getUIDValidity()
Returns the UIDValidity value associated with this folder.
|
int |
Folder.getUnreadMessageCount()
Get the total number of unread messages in this Folder.
|
URLName |
Folder.getURLName()
Return a URLName representing this folder.
|
Folder[] |
Store.getUserNamespaces(String user)
Return a set of folders representing the namespaces for
user . |
abstract boolean |
Folder.hasNewMessages()
Returns true if this Folder has new messages since the last time
this indication was reset.
|
boolean |
Part.isMimeType(String mimeType)
Is this Part of the specified MIME type? This method
compares only the
primaryType and
subType . |
boolean |
Message.isSet(Flags.Flag flag)
Check whether the flag specified in the
flag
argument is set in this message. |
Folder[] |
Folder.list()
Convenience method that returns the list of folders under this
Folder.
|
abstract Folder[] |
Folder.list(String pattern)
Returns a list of Folders belonging to this Folder's namespace
that match the specified pattern.
|
Folder[] |
Folder.listSubscribed()
Convenience method that returns the list of subscribed folders
under this Folder.
|
Folder[] |
Folder.listSubscribed(String pattern)
Returns a list of subscribed Folders belonging to this Folder's
namespace that match the specified pattern.
|
boolean |
Message.match(SearchTerm term)
Apply the specified Search criterion to this message.
|
abstract void |
Folder.open(int mode)
Open this Folder.
|
protected boolean |
Service.protocolConnect(String host,
int port,
String user,
String password)
The service implementation should override this method to
perform the actual protocol-specific connection attempt.
|
boolean |
Multipart.removeBodyPart(BodyPart part)
Remove the specified part from the multipart message.
|
void |
Multipart.removeBodyPart(int index)
Remove the part at specified location (starting from 0).
|
void |
Part.removeHeader(String header_name)
Remove all headers with this name.
|
abstract boolean |
Folder.renameTo(Folder f)
Rename this Folder.
|
abstract Message |
Message.reply(boolean replyToAll)
Get a new Message suitable for a reply to this message.
|
abstract void |
Message.saveChanges()
Save any changes made to this message into the message-store
when the containing folder is closed, if the message is contained
in a folder.
|
Message[] |
Folder.search(SearchTerm term)
Search this Folder for messages matching the specified
search criterion.
|
Message[] |
Folder.search(SearchTerm term,
Message[] msgs)
Search the given array of messages for those that match the
specified search criterion.
|
static void |
Transport.send(Message msg)
Send a message.
|
static void |
Transport.send(Message msg,
Address[] addresses)
Send the message to the specified addresses, ignoring any
recipients specified in the message itself.
|
static void |
Transport.send(Message msg,
Address[] addresses,
String user,
String password)
Send the message to the specified addresses, ignoring any
recipients specified in the message itself.
|
static void |
Transport.send(Message msg,
String user,
String password)
Send a message.
|
abstract void |
Transport.sendMessage(Message msg,
Address[] addresses)
Send the Message to the specified list of addresses.
|
void |
Part.setContent(Multipart mp)
This method sets the given Multipart object as this message's
content.
|
void |
Part.setContent(Object obj,
String type)
A convenience method for setting this part's content.
|
void |
Part.setDataHandler(DataHandler dh)
This method provides the mechanism to set this part's content.
|
void |
Part.setDescription(String description)
Set a description String for this part.
|
void |
Part.setDisposition(String disposition)
Set the disposition of this part.
|
void |
Part.setFileName(String filename)
Set the filename associated with this part, if possible.
|
void |
Message.setFlag(Flags.Flag flag,
boolean set)
Set the specified flag on this message to the specified value.
|
abstract void |
Message.setFlags(Flags flag,
boolean set)
Set the specified flags on this message to the specified value.
|
void |
Folder.setFlags(int[] msgnums,
Flags flag,
boolean value)
Set the specified flags on the messages whose message numbers
are in the array.
|
void |
Folder.setFlags(int start,
int end,
Flags flag,
boolean value)
Set the specified flags on the messages numbered from start
through end, both start and end inclusive.
|
void |
Folder.setFlags(Message[] msgs,
Flags flag,
boolean value)
Set the specified flags on the messages specified in the array.
|
abstract void |
Message.setFrom()
Set the "From" attribute in this Message.
|
abstract void |
Message.setFrom(Address address)
Set the "From" attribute in this Message.
|
void |
Part.setHeader(String header_name,
String header_value)
Set the value for this header_name.
|
protected void |
Multipart.setMultipartDataSource(MultipartDataSource mp)
Setup this Multipart object from the given MultipartDataSource.
|
void |
QuotaAwareStore.setQuota(Quota quota)
Set the quotas for the quota root specified in the quota argument.
|
void |
Message.setRecipient(Message.RecipientType type,
Address address)
Set the recipient address.
|
abstract void |
Message.setRecipients(Message.RecipientType type,
Address[] addresses)
Set the recipient addresses.
|
void |
Message.setReplyTo(Address[] addresses)
Set the addresses to which replies should be directed.
|
abstract void |
Message.setSentDate(Date date)
Set the sent date of this message.
|
abstract void |
Message.setSubject(String subject)
Set the subject of this message.
|
void |
Folder.setSubscribed(boolean subscribe)
Subscribe or unsubscribe this Folder.
|
void |
Part.setText(String text)
A convenience method that sets the given String as this
part's content with a MIME type of "text/plain".
|
void |
Part.writeTo(OutputStream os)
Output a bytestream for this Part.
|
abstract void |
Multipart.writeTo(OutputStream os)
Output an appropriately encoded bytestream to the given
OutputStream.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AddressException
The exception thrown when a wrongly formatted address is encountered.
|
class |
ParseException
The exception thrown due to an error in parsing RFC822
or MIME headers, including multipart bodies.
|
| Modifier and Type | Method and Description |
|---|---|
void |
MimeMultipart.addBodyPart(BodyPart part)
Adds a Part to the multipart.
|
void |
MimeMultipart.addBodyPart(BodyPart part,
int index)
Adds a BodyPart at position
index . |
void |
MimeMessage.addFrom(Address[] addresses)
Add the specified addresses to the existing "From" field.
|
void |
MimeMessage.addHeader(String name,
String value)
Add this value to the existing values for this header_name.
|
void |
MimeBodyPart.addHeader(String name,
String value)
Add this value to the existing values for this header_name.
|
void |
MimePart.addHeaderLine(String line)
Add a raw RFC822 header-line.
|
void |
MimeMessage.addHeaderLine(String line)
Add a raw RFC 822 header-line.
|
void |
MimeBodyPart.addHeaderLine(String line)
Add a header line to this body part
|
void |
MimeMessage.addRecipients(Message.RecipientType type,
Address[] addresses)
Add the given addresses to the specified recipient type.
|
void |
MimeMessage.addRecipients(Message.RecipientType type,
String addresses)
Add the given addresses to the specified recipient type.
|
void |
MimeBodyPart.attachFile(File file)
Use the specified file to provide the data for this part.
|
void |
MimeBodyPart.attachFile(File file,
String contentType,
String encoding)
Use the specified file with the specified Content-Type and
Content-Transfer-Encoding to provide the data for this part.
|
void |
MimeBodyPart.attachFile(String file)
Use the specified file to provide the data for this part.
|
void |
MimeBodyPart.attachFile(String file,
String contentType,
String encoding)
Use the specified file with the specified Content-Type and
Content-Transfer-Encoding to provide the data for this part.
|
protected InternetHeaders |
MimeMultipart.createInternetHeaders(InputStream is)
Create and return an InternetHeaders object that loads the
headers from the given InputStream.
|
protected InternetHeaders |
MimeMessage.createInternetHeaders(InputStream is)
Create and return an InternetHeaders object that loads the
headers from the given InputStream.
|
protected MimeBodyPart |
MimeMultipart.createMimeBodyPart(InputStream is)
Create and return a MimeBodyPart object to represent a
body part parsed from the InputStream.
|
protected MimeBodyPart |
MimeMultipart.createMimeBodyPart(InternetHeaders headers,
byte[] content)
Create and return a MimeBodyPart object to represent a
body part parsed from the InputStream.
|
protected MimeMessage |
MimeMessage.createMimeMessage(Session session)
Create and return a MimeMessage object.
|
static InputStream |
MimeUtility.decode(InputStream is,
String encoding)
Decode the given input stream.
|
static OutputStream |
MimeUtility.encode(OutputStream os,
String encoding)
Wrap an encoder around the given output stream.
|
static OutputStream |
MimeUtility.encode(OutputStream os,
String encoding,
String filename)
Wrap an encoder around the given output stream.
|
Enumeration<String> |
MimePart.getAllHeaderLines()
Get all header lines as an Enumeration of Strings.
|
Enumeration<String> |
MimeMessage.getAllHeaderLines()
Get all header lines as an Enumeration of Strings.
|
Enumeration<String> |
MimeBodyPart.getAllHeaderLines()
Get all header lines as an Enumeration of Strings.
|
Enumeration<Header> |
MimeMessage.getAllHeaders()
Return all the headers from this Message as an enumeration
of Header objects.
|
Enumeration<Header> |
MimeBodyPart.getAllHeaders()
Return all the headers from this Message as an Enumeration of
Header objects.
|
Address[] |
MimeMessage.getAllRecipients()
Get all the recipient addresses for the message.
|
BodyPart |
MimeMultipart.getBodyPart(int index)
Get the specified BodyPart.
|
BodyPart |
MimeMultipart.getBodyPart(String CID)
Get the MimeBodyPart referred to by the given ContentID (CID).
|
Object |
MimeMessage.getContent()
Return the content as a Java object.
|
Object |
MimeBodyPart.getContent()
Return the content as a Java object.
|
String |
MimePart.getContentID()
Get the Content-ID of this part.
|
String |
MimeMessage.getContentID()
Returns the value of the "Content-ID" header field.
|
String |
MimeBodyPart.getContentID()
Returns the value of the "Content-ID" header field.
|
String[] |
MimePart.getContentLanguage()
Get the language tags specified in the Content-Language header
of this MimePart.
|
String[] |
MimeMessage.getContentLanguage()
Get the languages specified in the "Content-Language" header
field of this message.
|
String[] |
MimeBodyPart.getContentLanguage()
Get the languages specified in the Content-Language header
of this MimePart.
|
String |
MimePart.getContentMD5()
Get the Content-MD5 digest of this part.
|
String |
MimeMessage.getContentMD5()
Return the value of the "Content-MD5" header field.
|
String |
MimeBodyPart.getContentMD5()
Return the value of the "Content-MD5" header field.
|
protected InputStream |
MimeMessage.getContentStream()
Produce the raw bytes of the content.
|
protected InputStream |
MimeBodyPart.getContentStream()
Produce the raw bytes of the content.
|
String |
MimeMessage.getContentType()
Returns the value of the RFC 822 "Content-Type" header field.
|
String |
MimeBodyPart.getContentType()
Returns the value of the RFC 822 "Content-Type" header field.
|
int |
MimeMultipart.getCount()
Return the number of enclosed BodyPart objects.
|
DataHandler |
MimeMessage.getDataHandler()
Return a DataHandler for this Message's content.
|
DataHandler |
MimeBodyPart.getDataHandler()
Return a DataHandler for this body part's content.
|
String |
MimeMessage.getDescription()
Returns the "Content-Description" header field of this Message.
|
String |
MimeBodyPart.getDescription()
Returns the "Content-Description" header field of this body part.
|
String |
MimeMessage.getDisposition()
Returns the disposition from the "Content-Disposition" header field.
|
String |
MimeBodyPart.getDisposition()
Returns the disposition from the "Content-Disposition" header field.
|
String |
PreencodedMimeBodyPart.getEncoding()
Returns the content transfer encoding specified when
this object was created.
|
String |
MimePart.getEncoding()
Get the transfer encoding of this part.
|
String |
MimeMessage.getEncoding()
Returns the content transfer encoding from the
"Content-Transfer-Encoding" header
field.
|
String |
MimeBodyPart.getEncoding()
Returns the content transfer encoding from the
"Content-Transfer-Encoding" header
field.
|
String |
MimeMessage.getFileName()
Get the filename associated with this Message.
|
String |
MimeBodyPart.getFileName()
Get the filename associated with this body part.
|
Flags |
MimeMessage.getFlags()
Return a
Flags object containing the flags for
this message. |
Address[] |
MimeMessage.getFrom()
Returns the value of the RFC 822 "From" header fields.
|
String[] |
MimeMessage.getHeader(String name)
Get all the headers for this header_name.
|
String[] |
MimeBodyPart.getHeader(String name)
Get all the headers for this header_name.
|
String |
MimePart.getHeader(String name,
String delimiter)
Get the values of all header fields available for this header,
returned as a single String, with the values separated by the
delimiter.
|
String |
MimeMessage.getHeader(String name,
String delimiter)
Get all the headers for this header name, returned as a single
String, with headers separated by the delimiter.
|
String |
MimeBodyPart.getHeader(String name,
String delimiter)
Get all the headers for this header name, returned as a single
String, with headers separated by the delimiter.
|
InputStream |
MimeMessage.getInputStream()
Return a decoded input stream for this Message's "content".
|
InputStream |
MimeBodyPart.getInputStream()
Return a decoded input stream for this body part's "content".
|
int |
MimeMessage.getLineCount()
Return the number of lines for the content of this message.
|
int |
MimeBodyPart.getLineCount()
Return the number of lines for the content of this Part.
|
Enumeration<String> |
MimePart.getMatchingHeaderLines(String[] names)
Get matching header lines as an Enumeration of Strings.
|
Enumeration<String> |
MimeMessage.getMatchingHeaderLines(String[] names)
Get matching header lines as an Enumeration of Strings.
|
Enumeration<String> |
MimeBodyPart.getMatchingHeaderLines(String[] names)
Get matching header lines as an Enumeration of Strings.
|
Enumeration<Header> |
MimeMessage.getMatchingHeaders(String[] names)
Return matching headers from this Message as an Enumeration of
Header objects.
|
Enumeration<Header> |
MimeBodyPart.getMatchingHeaders(String[] names)
Return matching headers from this Message as an Enumeration of
Header objects.
|
String |
MimeMessage.getMessageID()
Returns the value of the "Message-ID" header field.
|
Enumeration<String> |
MimePart.getNonMatchingHeaderLines(String[] names)
Get non-matching header lines as an Enumeration of Strings.
|
Enumeration<String> |
MimeMessage.getNonMatchingHeaderLines(String[] names)
Get non-matching header lines as an Enumeration of Strings.
|
Enumeration<String> |
MimeBodyPart.getNonMatchingHeaderLines(String[] names)
Get non-matching header lines as an Enumeration of Strings.
|
Enumeration<Header> |
MimeMessage.getNonMatchingHeaders(String[] names)
Return non-matching headers from this Message as an
Enumeration of Header objects.
|
Enumeration<Header> |
MimeBodyPart.getNonMatchingHeaders(String[] names)
Return non-matching headers from this Message as an
Enumeration of Header objects.
|
String |
MimeMultipart.getPreamble()
Get the preamble text, if any, that appears before the
first body part of this multipart.
|
InputStream |
MimeMessage.getRawInputStream()
Return an InputStream to the raw data with any Content-Transfer-Encoding
intact.
|
InputStream |
MimeBodyPart.getRawInputStream()
Return an InputStream to the raw data with any Content-Transfer-Encoding
intact.
|
Date |
MimeMessage.getReceivedDate()
Returns the Date on this message was received.
|
Address[] |
MimeMessage.getRecipients(Message.RecipientType type)
Returns the recepients specified by the type.
|
Address[] |
MimeMessage.getReplyTo()
Return the value of the RFC 822 "Reply-To" header field.
|
Address |
MimeMessage.getSender()
Returns the value of the RFC 822 "Sender" header field.
|
Date |
MimeMessage.getSentDate()
Returns the value of the RFC 822 "Date" field.
|
int |
MimeMessage.getSize()
Return the size of the content of this message in bytes.
|
int |
MimeBodyPart.getSize()
Return the size of the content of this body part in bytes.
|
String |
MimeMessage.getSubject()
Returns the value of the "Subject" header field.
|
boolean |
MimeMultipart.isComplete()
Return true if the final boundary line for this
multipart was seen.
|
boolean |
MimeMessage.isMimeType(String mimeType)
Is this Part of the specified MIME type? This method
compares only the
primaryType and
subType . |
boolean |
MimeBodyPart.isMimeType(String mimeType)
Is this Part of the specified MIME type? This method
compares only the
primaryType and
subType . |
boolean |
MimeMessage.isSet(Flags.Flag flag)
Check whether the flag specified in the
flag
argument is set in this message. |
void |
InternetHeaders.load(InputStream is)
Read and parse the given RFC822 message stream till the
blank line separating the header from the body.
|
void |
InternetHeaders.load(InputStream is,
boolean allowutf8)
Read and parse the given RFC822 message stream till the
blank line separating the header from the body.
|
protected void |
MimeMultipart.parse()
Parse the InputStream from our DataSource, constructing the
appropriate MimeBodyParts.
|
protected void |
MimeMessage.parse(InputStream is)
Parse the InputStream setting the
headers and
content fields appropriately. |
boolean |
MimeMultipart.removeBodyPart(BodyPart part)
Remove the specified part from the multipart message.
|
void |
MimeMultipart.removeBodyPart(int index)
Remove the part at specified location (starting from 0).
|
void |
MimeMessage.removeHeader(String name)
Remove all headers with this name.
|
void |
MimeBodyPart.removeHeader(String name)
Remove all headers with this name.
|
Message |
MimeMessage.reply(boolean replyToAll)
Get a new Message suitable for a reply to this message.
|
Message |
MimeMessage.reply(boolean replyToAll,
boolean setAnswered)
Get a new Message suitable for a reply to this message.
|
void |
MimeMessage.saveChanges()
Updates the appropriate header fields of this message to be
consistent with the message's contents.
|
void |
MimeBodyPart.saveFile(File file)
Save the contents of this part in the specified file.
|
void |
MimeBodyPart.saveFile(String file)
Save the contents of this part in the specified file.
|
void |
MimeMessage.setContent(Multipart mp)
This method sets the Message's content to a Multipart object.
|
void |
MimeBodyPart.setContent(Multipart mp)
This method sets the body part's content to a Multipart object.
|
void |
MimeMessage.setContent(Object o,
String type)
A convenience method for setting this Message's content.
|
void |
MimeBodyPart.setContent(Object o,
String type)
A convenience method for setting this body part's content.
|
void |
MimeMessage.setContentID(String cid)
Set the "Content-ID" header field of this Message.
|
void |
MimeBodyPart.setContentID(String cid)
Set the "Content-ID" header field of this body part.
|
void |
MimePart.setContentLanguage(String[] languages)
Set the Content-Language header of this MimePart.
|
void |
MimeMessage.setContentLanguage(String[] languages)
Set the "Content-Language" header of this MimePart.
|
void |
MimeBodyPart.setContentLanguage(String[] languages)
Set the Content-Language header of this MimePart.
|
void |
MimePart.setContentMD5(String md5)
Set the Content-MD5 of this part.
|
void |
MimeMessage.setContentMD5(String md5)
Set the "Content-MD5" header field of this Message.
|
void |
MimeBodyPart.setContentMD5(String md5)
Set the "Content-MD5" header field of this body part.
|
void |
MimeMessage.setDataHandler(DataHandler dh)
This method provides the mechanism to set this part's content.
|
void |
MimeBodyPart.setDataHandler(DataHandler dh)
This method provides the mechanism to set this body part's content.
|
void |
MimeMessage.setDescription(String description)
Set the "Content-Description" header field for this Message.
|
void |
MimeBodyPart.setDescription(String description)
Set the "Content-Description" header field for this body part.
|
void |
MimeMessage.setDescription(String description,
String charset)
Set the "Content-Description" header field for this Message.
|
void |
MimeBodyPart.setDescription(String description,
String charset)
Set the "Content-Description" header field for this body part.
|
void |
MimeMessage.setDisposition(String disposition)
Set the disposition in the "Content-Disposition" header field
of this body part.
|
void |
MimeBodyPart.setDisposition(String disposition)
Set the disposition in the "Content-Disposition" header field
of this body part.
|
void |
MimeMessage.setFileName(String filename)
Set the filename associated with this part, if possible.
|
void |
MimeBodyPart.setFileName(String filename)
Set the filename associated with this body part, if possible.
|
void |
MimeMessage.setFlags(Flags flag,
boolean set)
Set the flags for this message.
|
void |
MimeMessage.setFrom()
Set the RFC 822 "From" header field using the value of the
InternetAddress.getLocalAddress method. |
void |
MimeMessage.setFrom(Address address)
Set the RFC 822 "From" header field.
|
void |
MimeMessage.setFrom(String address)
Set the RFC 822 "From" header field.
|
void |
MimeMessage.setHeader(String name,
String value)
Set the value for this header_name.
|
void |
MimeBodyPart.setHeader(String name,
String value)
Set the value for this header_name.
|
void |
MimeMultipart.setPreamble(String preamble)
Set the preamble text to be included before the first
body part.
|
void |
MimeMessage.setRecipients(Message.RecipientType type,
Address[] addresses)
Set the specified recipient type to the given addresses.
|
void |
MimeMessage.setRecipients(Message.RecipientType type,
String addresses)
Set the specified recipient type to the given addresses.
|
void |
MimeMessage.setReplyTo(Address[] addresses)
Set the RFC 822 "Reply-To" header field.
|
void |
MimeMessage.setSender(Address address)
Set the RFC 822 "Sender" header field.
|
void |
MimeMessage.setSentDate(Date d)
Set the RFC 822 "Date" header field.
|
void |
MimeMessage.setSubject(String subject)
Set the "Subject" header field.
|
void |
MimeMessage.setSubject(String subject,
String charset)
Set the "Subject" header field.
|
void |
MimeMultipart.setSubType(String subtype)
Set the subtype.
|
void |
MimePart.setText(String text)
Convenience method that sets the given String as this
part's content, with a MIME type of "text/plain".
|
void |
MimeMessage.setText(String text)
Convenience method that sets the given String as this
part's content, with a MIME type of "text/plain".
|
void |
MimeBodyPart.setText(String text)
Convenience method that sets the given String as this
part's content, with a MIME type of "text/plain".
|
void |
MimePart.setText(String text,
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 |
MimeMessage.setText(String text,
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 |
MimeBodyPart.setText(String text,
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 |
MimePart.setText(String text,
String charset,
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.
|
void |
MimeMessage.setText(String text,
String charset,
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.
|
void |
MimeBodyPart.setText(String text,
String charset,
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 |
PreencodedMimeBodyPart.updateHeaders()
Force the
Content-Transfer-Encoding header to use
the encoding that was specified when this object was created. |
protected void |
MimeMultipart.updateHeaders()
Update headers.
|
protected void |
MimeMessage.updateHeaders()
Called by the
saveChanges method to actually
update the MIME headers. |
protected void |
MimeBodyPart.updateHeaders()
Examine the content of this body part and update the appropriate
MIME headers.
|
protected void |
MimeMessage.updateMessageID()
Update the Message-ID header.
|
void |
PreencodedMimeBodyPart.writeTo(OutputStream os)
Output the body part as an RFC 822 format stream.
|
void |
MimeMultipart.writeTo(OutputStream os)
Iterates through all the parts and outputs each MIME part
separated by a boundary.
|
void |
MimeMessage.writeTo(OutputStream os)
Output the message as an RFC 822 format stream.
|
void |
MimeBodyPart.writeTo(OutputStream os)
Output the body part as an RFC 822 format stream.
|
void |
MimeMessage.writeTo(OutputStream os,
String[] ignoreList)
Output the message as an RFC 822 format stream, without
specified headers.
|
| Constructor and Description |
|---|
InternetHeaders(InputStream is)
Read and parse the given RFC822 message stream till the
blank line separating the header from the body.
|
InternetHeaders(InputStream is,
boolean allowutf8)
Read and parse the given RFC822 message stream till the
blank line separating the header from the body.
|
MimeBodyPart(InputStream is)
Constructs a MimeBodyPart by reading and parsing the data from
the specified input stream.
|
MimeBodyPart(InternetHeaders headers,
byte[] content)
Constructs a MimeBodyPart using the given header and
content bytes.
|
MimeMessage(Folder folder,
InputStream is,
int msgnum)
Constructs a MimeMessage by reading and parsing the data from the
specified MIME InputStream.
|
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,
InputStream is)
Constructs a MimeMessage by reading and parsing the data from the
specified MIME InputStream.
|
MimeMultipart(BodyPart... parts)
Construct a MimeMultipart object of the default "mixed" subtype,
and with the given body parts.
|
MimeMultipart(DataSource ds)
Constructs a MimeMultipart object and its bodyparts from the
given DataSource.
|
MimeMultipart(String subtype,
BodyPart... parts)
Construct a MimeMultipart object of the given subtype
and with the given body parts.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SearchException
The exception thrown when a Search expression could not be handled.
|
Copyright © 2022. All rights reserved.


{% extends "base.html" %} {% block content %}
{{ user.name }}
{{ user.fullname }}
{{ user.email }}
Subscriptions
You are not subscribed to any dataset.
To subscribe to updates, please visit the dataset page for which you would like to receive notifications and click the "Subscribe to Updates" button.


Objects list
Home
Admin
Sign in
Check in:
Check out:
Room size:
Room size
1
2
3
4
5
Search object:
Search
Interesting places
Back to the list of objects
Back to the list of rooms
Check in:
Check out:
Book a room:
Book
Email address
Password
Log in
Log in


Note: Every metric has to have a unique Alias to be used
Error: There are multiple metrics with the same alias. Please give each metric a unique name.
{{ measurement.alias }}
Metric: {{ measurement.refId }}
Please enter an alias for this measurement bellow


Cocaine haul worth £10,000,000 found hidden in frozen fish van
A van containing 100kg of cocaine has been stopped at a UK port.
Border Force officers arrested James Satterley, 50, from Berkshire, after he allegedly tried to smuggle £10 million worth of drugs in a truck containing frozen fish.
Officials stopped a van he had driven off a ferry at Newhaven Port in East Sussex, early on Saturday morning.
National Crime Agency (NCA) officers said they seized cocaine wrapped in 97 one-kilo packages hidden in a load of frozen seafood.
An NCA spokesperson said: ‘If cut and sold at street level it is likely the haul would have had a potential value of around £10 million.’
NCA Senior Investigating Officer Paul Morris added: ‘NCA officers are working alongside Border Force, Sussex Police, Thames Valley Police and the South East Regional Organised Crime Unit to investigate this seizure and the circumstances around it.
Advertisement Advertisement
‘Working with partners we are determined to do all we can to disrupt the organised crime groups involved in the large-scale importation of class A drugs, which fuel serious violence and impact some of the most vulnerable members of our society. Making seizures like this is an important part of that work.’
Officers questioned Satterley before charging him with importing class A drugs.
He is being held in custody and will appear before Brighton magistrates on Monday.
The drugs have been taken away for further analysis.
Got a story for Metro.co.uk?
Get in touch with our news team by emailing us at<EMAIL_ADDRESS>For more stories like this, check our news page.


The Samsung Galaxy A51 would have a quad camera of 48MP
by AbdullahThe Samsung Galaxy A51 would have a quad camera of 48MP
5 (100%) 1 vote
The Samsung Galaxy A50 was, according to Canalys, the star of the company’s new premium mid-range and, although it later received a special edition, the Samsung Galaxy A50s, its real successor is expected next year under the name of Samsung Galaxy A51.
We have already collected some leaks of this Galaxy A51, which appeared even in Geekbench, but now we have obtained the supposed main technical specifications of the Samsung mid-range that will arrive in 2020.
48 MP quad camera
The information comes from Ishan Agarwal, which reveals that the Samsung Galaxy A51 would have a 6.5-inch Super AMOLED screen, predictably FullHD+. So far not many changes, since both Galaxy A50 and A50s mounted a similar screen, at 6.4 inches.
According to the source, the camera for selfies would remain at 32MP just like the Samsung Galaxy A50. While on the back, the main sensor would be 48MP, also the same as the A50s. Other leaks reveal that the camera module would have an L-shape. With the possibility of including a 12 MP wide-angle, a 12 MP telephoto sensor and a 5 MP depth sensor. That’s a quad camera.
Exynos 9611 with 4 GB of RAM
The headphone jack would be maintained and obviously the USB-C connector would not be missing. The passage through Geekbench of the device told us that on board would be the Exynos 9611. With 4 GB of RAM and Android 10 preinstalled. The battery, on the other hand, would be 4,000 mAh.
For now, there is nothing confirmed, although this device is expected to be official at some point in the first quarter of 2020. Possibly along with other models of the A-series, which should be renewed next year.


#include <PlayerController.h>
§ PlayerController() [1/2]
| PlayerController::PlayerController |
( |
| ) |
|
|
inline |
§ PlayerController() [2/2]
| PlayerController::PlayerController |
( |
int |
tileSize | ) |
|
|
inline |
§ ~PlayerController()
| PlayerController::~PlayerController |
( |
| ) |
|
|
inline |
§ CurrentLane()
| Lane PlayerController::CurrentLane |
( |
| ) |
const |
§ DecreaseVelocity()
| void PlayerController::DecreaseVelocity |
( |
| ) |
|
Decreases player's velocity
§ Fall()
| void PlayerController::Fall |
( |
| ) |
|
§ GetGearSpeed()
| double PlayerController::GetGearSpeed |
( |
| ) |
const |
§ HandleEvent()
| void PlayerController::HandleEvent |
( |
sf::Event |
event | ) |
|
|
overridevirtual |
Handles input events.
- Parameters
-
Implements IComponent.
§ HopLeft()
| void PlayerController::HopLeft |
( |
| ) |
|
Jumps to the lane left of player if possible.
§ HopRight()
| void PlayerController::HopRight |
( |
| ) |
|
Jumps to the lane right of player if possible.
§ IncreaseVelocity()
| void PlayerController::IncreaseVelocity |
( |
| ) |
|
Increases player's velocity.
§ Init()
| void PlayerController::Init |
( |
| ) |
|
|
overridevirtual |
§ InitGears()
| void PlayerController::InitGears |
( |
double |
maxVelocity | ) |
|
|
private |
Initializes gears for player's max velocity.
- Parameters
-
| maxVelocity | - Max velocity player can achieve. |
§ Jump()
| void PlayerController::Jump |
( |
| ) |
|
§ SetTileSize()
| void PlayerController::SetTileSize |
( |
int |
size | ) |
|
§ Update()
| void PlayerController::Update |
( |
double |
time | ) |
|
|
overridevirtual |
§ _currentLane
| Lane PlayerController::_currentLane |
|
private |
§ _fallTimer
| sf::Clock PlayerController::_fallTimer |
|
private |
§ _jumpTimer
| sf::Clock PlayerController::_jumpTimer |
|
private |
§ _moveableComponent
| Moveable* PlayerController::_moveableComponent |
|
private |
§ _playerComponent
§ _tileSize
| int PlayerController::_tileSize {128} |
|
private |
§ velocityPerGear
| double PlayerController::velocityPerGear {0} |
|
private |
The documentation for this class was generated from the following files:


Merkel visits Delhi Metro station fitted with Germany-funded solar panel
Merkel visited the terrace of the metro station where she was briefed by officials of the Delhi Metro Rail Corporation (DMRC) about the solar project
by Press Trust of IndiaGerman Chancellor Anjela Merkel visited on Saturday the Dwarka Sector 21 metro station, which is fitted with solar panels funded by the KfW, a state-owned development bank of her country.
Merkel visited the terrace of the metro station where she was briefed by officials of the Delhi Metro Rail Corporation (DMRC) about the solar project.
The Frankfurt-based bank has also offered soft loans for other projects in India, including the Clean Ganga Mission.
The visit to the metro station, the first-solar fitted one in the mammoth Delhi Metro network, was the last leg of Merkel's trip to India, who arrived here on Thursday night.
The chancellor spent nearly 30 minutes at the station and also interacted with an e-auto driver.
Rajkumar, the driver of the e-auto, said the German chancellor asked him about the vehicle and his work during their three-minute conversation.
A former supervisor at a garments company, Rajkumar, who identifies himself by first name, said he was happy to have interacted with Merkel.
The e-auto is being rented by a private company to auto drivers and Rajkumar pays Rs 400 daily as its plying charges.
"I am so elated that I could shake hand and talk to her," he said about his interaction with Merkel.


BRICS New Development Bank to Open Office in Russia
BRASILIA (Sputnik) – The Russian government and the New Development Bank (NDB), established by BRICS states, have concluded an agreement on opening the bank's Eurasian Regional Center in Moscow, a Sputnik correspondent reported.
At a ceremony in Brasilia on Wednesday, which Sputnik is exclusively covering, the deal was signed by the bank's President, Kundapur Vaman Kamath, and Russian Deputy Finance Minister Sergey Storchak.
In a comment to Sputnik, the NDB president said that the office was expected to open in the next two or three months.
"We have seen that whenever we open an office in a particular country, it adds a big [investment] pipeline. I am sure that we will have a very good pipeline in Russia after we are able to open our office in the next two or three months", Kamath stated after the ceremony.
Storchak told Sputnik that about five to seven people would be working at the NDB's Eurasian Regional Center in Moscow.
Under the deal, apart from the Moscow office, the NDB may also set up offices in other Russian cities, depending on its functions and business needs.
The NDB was established by Brazil, Russia, India, China, and South Africa in 2014. It is currently focused on developing sustainable infrastructure.
The Africa Regional Center in Johannesburg was the first regional office to be set up by the NDB in August 2017. In July 2018, a deal was signed for establishing the Americas Regional Office (ARO) in Sao Paulo.


Web developers are often dealing with URLs that have to follow a certain pattern, such as `http://api.myservice.com/things/{id}`. In SPARQL-Generate, it is possible to use a similar scheme in URIs as well as in literals.
One may embed SPARQL expressions in nodes wherever variables would be legal:


₹1,059 cr. collected as liquor cess: govt.
by Special CorrespondentThe State government has collected ₹1,059.04 crore as cess on sale of liquor between 2014 and 2018.
The government had allotted ₹8.73 crore for 100 workers who had registered under the Abkari Welfare Fund Board.
These workers had lost their employment in bar hotels after the changes in liquor policy, the State government submitted before the Kerala High Court.
Since 2014, 726 bars were closed down, whereas the government gave permission for opening 689 beer and wine parlours. The government informed the court that ₹26.62 crore was spend on the rehabilitation of the alcoholics and awareness programmes. A modern de-addition centre would be opened in Kozhikode, the State submitted.
It was on a batch of petitions seeking financial aid from the fund that the State submitted the affidavit. The court will consider the case on November 22.


Performant list view that re-uses cells to display large data sets
ScrollListView.js is a library that allows you to scroll over large data sets without get a performance impact. It does this though a clever algorithm of re-using a fixed number of cells and as you scroll repaints them beneath the last item. Think iOS UITableView for the web.
Go check the live demo of an infinite list using ScrollListView and one without.
Checkout ScrollListView working with iScroll for fast infinite scrolling on mobile devices. ScrollListView on mobile
Take a look at the article I wrote about it if you'd like to know more about how it works.
npm install ScrollListView
This is a UMD package so if you just include the script in your page it'll attach to the window.
But if you prefer a module system this will work fine with commonjs or AMD modules just fine.
For a live example I highly recommend you check out the demo and view-source. To see how to you can configure it readon.
var ScrollListView = require('ScrollListView');
var scrollListView = new ScrollListView({
element: document.querySelector('.list'),
data: [... array of objects to render],
cellHeight: 150,
renderFn: render,
renderCellFn: renderCellFn
});
| element | The element that the re-usable cells will live inside. You don't add children to this the `renderFn` takes care of that. |
|---|---|
| data | The array of data the list will read from work scroll offset and heights |
| cellHeight | The abslute height in px that the cell will be. |
| renderFn | This function gets called on initialisation to render the initial list. |
| renderCellFn | When a cell is determined to be far enough out of the viewport this will be called with the element you can safely overwrite with the new data and the index in your data array passed in earlier. |
The only thing that ScrollListView expects is that you pass through an array that contains your list data. How you choose to render that data is up to you.
I'll take the example code and walk you through how I chose to render my ScrollListView.
function render(count) {
var cellsFrag = document.createDocumentFragment();
for(var i = 0; i < count; i++) {
var cell = document.createElement('li'),
tweet = this.data[i];
cell.className = 'scrolllist__cell gpuarise';
cell.innerHTML = tmpl('tweet_tpl', tweet);
cell.style.order = i+1;
cellsFrag.appendChild(cell);
}
listContainer.appendChild(cellsFrag);
listContainer.style.minHeight = this.data.length * this.CELLHEIGHT + 'px';
}
The above is very simple the count
argument is the length of cells that the list uses based on some calculations on window height and the cellHeight
you would of configured on init.
All I'm doing is creating a document fragment and looping over the count
grabbing the corresponding bits of data from the data passed into our constructor it then create a list item that I innerHTML my data using the very simple tpl.js template engine.
The renderCell
method is even easier.
function renderCell(cell, index) {
cell.innerHTML = tmpl('tweet_tpl', this.data[index]);
}
This method passes in the cell
and the index
of which bit of data I should render into this cell then all I do is apply the template to the cell
.
Each of these methods our bound to the instance they're called from so this
refers to your scrollListView instance.
Copyright 2014, Ryan Seddon This content is released under the MIT license http://ryanseddon.mit-license.org