|
Apache JAMES Mime4j 0.6-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EntityStateMachine
Represents the interal state of a MIME entity, which is being retrieved from an input stream by a MIME parser.
Method Summary | |
---|---|
EntityStateMachine |
advance()
Advances the state machine to the next state in the process of the MIME stream parsing. |
BodyDescriptor |
getBodyDescriptor()
Returns description of the entity body. |
InputStream |
getContentStream()
Returns content stream of the entity body. |
Field |
getField()
Returns current header field. |
int |
getState()
Return the current state of the entity. |
void |
setRecursionMode(int recursionMode)
Sets the current recursion mode. |
Method Detail |
---|
int getState()
EntityStates
void setRecursionMode(int recursionMode)
RecursionMode.M_RAW
mode does not parse the part at all.
RecursionMode.M_RECURSE
mode recursively parses each mail
when an message/rfc822
part is encounted;
RecursionMode.M_NO_RECURSE
does not.
recursionMode
- RecursionMode
EntityStateMachine advance() throws IOException, MimeException
null
otherwise.
IOException
- if an I/O error occurs.
MimeException
- if the message can not be processed due
to the MIME specification violation.BodyDescriptor getBodyDescriptor() throws IllegalStateException
IllegalStateException
- if the body description cannot be
obtained at the current stage of the parsing process.InputStream getContentStream() throws IllegalStateException
IllegalStateException
- if the content stream cannot be
obtained at the current stage of the parsing process.Field getField() throws IllegalStateException
IllegalStateException
- if a header field cannot be
obtained at the current stage of the parsing process.
|
Apache JAMES Mime4j 0.6-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |