|
||||||||||
| 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. |
InputStream |
getContentStream()
Returns raw data stream. |
InputStream |
getDecodedContentStream()
Returns the decoded content stream of the entity body. |
RawField |
getField()
This method has no effect and always returns null. |
String |
getFieldName()
This method has no effect and always returns null. |
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 EntityStateMachineEntityStatepublic void setRecursionMode(RecursionMode recursionMode)
setRecursionMode in interface EntityStateMachineRecursionModepublic EntityStateMachine advance()
EntityStateMachine
advance in interface EntityStateMachinenull otherwise.public InputStream getContentStream()
getContentStream in interface EntityStateMachinepublic BodyDescriptor getBodyDescriptor()
null.
getBodyDescriptor in interface EntityStateMachinepublic RawField getField()
null.
getField in interface EntityStateMachinepublic String getFieldName()
null.
public String getFieldValue()
null.
public InputStream getDecodedContentStream()
throws IllegalStateException
EntityStateMachine
getDecodedContentStream in interface EntityStateMachineIllegalStateException - 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 | |||||||||