public interface EntityStateMachine
Description:
Title:首亨软件 - TSS/CRM等
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
java.io.InputStream |
getContentStream()
Returns content stream of the entity body.
|
java.io.InputStream |
getDecodedContentStream()
Returns the decoded content stream of the entity body.
|
Field |
getField()
Returns current header field.
|
EntityState |
getState()
Return the current state of the entity.
|
void |
setRecursionMode(RecursionMode recursionMode)
Sets the current recursion mode.
|
EntityState getState()
EntityStatevoid setRecursionMode(RecursionMode 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 - RecursionModeEntityStateMachine advance() throws java.io.IOException, MimeException
null otherwise.java.io.IOException - if an I/O error occurs.MimeException - if the message can not be processed due
to the MIME specification violation.BodyDescriptor getBodyDescriptor() throws java.lang.IllegalStateException
java.lang.IllegalStateException - if the body description cannot be
obtained at the current stage of the parsing process.java.io.InputStream getContentStream()
throws java.lang.IllegalStateException
java.lang.IllegalStateException - if the content stream cannot be
obtained at the current stage of the parsing process.java.io.InputStream getDecodedContentStream()
throws java.lang.IllegalStateException
java.lang.IllegalStateException - if the content stream cannot be
obtained at the current stage of the parsing process.Field getField() throws java.lang.IllegalStateException
java.lang.IllegalStateException - if a header field cannot be
obtained at the current stage of the parsing process.