接口 EntityStateMachine
- 所有已知实现类:
RawEntity
public interface EntityStateMachine
Description:
Title:首亨软件 - TSS/CRM等
- 从以下版本开始:
- Aug 16, 2012
-
方法概要
修饰符和类型方法说明advance()Advances the state machine to the next state in the process of the MIME stream parsing.Returns description of the entity body.Returns content stream of the entity body.Returns the decoded content stream of the entity body.getField()Returns current header field.getState()Return the current state of the entity.voidsetRecursionMode(RecursionMode recursionMode) Sets the current recursion mode.
-
方法详细资料
-
getState
EntityState getState()Return the current state of the entity.- 返回:
- current state
- 另请参阅:
-
setRecursionMode
Sets the current recursion mode. The recursion mode specifies the approach taken to parsing parts.RecursionMode.M_RAWmode does not parse the part at all.RecursionMode.M_RECURSEmode recursively parses each mail when anmessage/rfc822part is encounted;RecursionMode.M_NO_RECURSEdoes not.- 参数:
recursionMode- RecursionMode
-
advance
Advances the state machine to the next state in the process of the MIME stream parsing. This method may return an new state machine that represents an embedded entity, which must be parsed before the parsing process of the current entity can proceed.- 返回:
- a state machine of an embedded entity, if encountered,
nullotherwise. - 抛出:
IOException- if an I/O error occurs.MimeException- if the message can not be processed due to the MIME specification violation.
-
getBodyDescriptor
Returns description of the entity body.- 返回:
- body description
- 抛出:
IllegalStateException- if the body description cannot be obtained at the current stage of the parsing process.
-
getContentStream
Returns content stream of the entity body.- 返回:
- input stream
- 抛出:
IllegalStateException- if the content stream cannot be obtained at the current stage of the parsing process.
-
getDecodedContentStream
Returns the decoded content stream of the entity body.- 返回:
- input stream
- 抛出:
IllegalStateException- if the content stream cannot be obtained at the current stage of the parsing process.
-
getField
Returns current header field.- 返回:
- header field
- 抛出:
IllegalStateException- if a header field cannot be obtained at the current stage of the parsing process.
-