|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.james.mime4j.stream.RawEntity
public class RawEntity
Raw MIME entity. Such entities will not be parsed into elements by the parser. They are meant to be consumed as a raw data stream by the caller.
Method Summary | |
---|---|
EntityStateMachine |
advance()
Advances the state machine to the next state in the process of the MIME stream parsing. |
BodyDescriptor |
getBodyDescriptor()
This method has no effect and always returns null . |
java.io.InputStream |
getContentStream()
Returns raw data stream. |
java.io.InputStream |
getDecodedContentStream()
Returns the decoded content stream of the entity body. |
RawField |
getField()
This method has no effect and always returns null . |
java.lang.String |
getFieldName()
This method has no effect and always returns null . |
java.lang.String |
getFieldValue()
This method has no effect and always returns null . |
EntityState |
getState()
Return the current state of the entity. |
void |
setRecursionMode(RecursionMode recursionMode)
This method has no effect. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public EntityState getState()
EntityStateMachine
getState
in interface EntityStateMachine
EntityState
public void setRecursionMode(RecursionMode recursionMode)
setRecursionMode
in interface EntityStateMachine
RecursionMode
public EntityStateMachine advance()
EntityStateMachine
advance
in interface EntityStateMachine
null
otherwise.public java.io.InputStream getContentStream()
getContentStream
in interface EntityStateMachine
public BodyDescriptor getBodyDescriptor()
null
.
getBodyDescriptor
in interface EntityStateMachine
public RawField getField()
null
.
getField
in interface EntityStateMachine
public java.lang.String getFieldName()
null
.
public java.lang.String getFieldValue()
null
.
public java.io.InputStream getDecodedContentStream() throws java.lang.IllegalStateException
EntityStateMachine
getDecodedContentStream
in interface EntityStateMachine
java.lang.IllegalStateException
- if the content stream cannot be
obtained at the current stage of the parsing process.EntityStateMachine.getDecodedContentStream()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |