Class RawEntity

  • All Implemented Interfaces:
    EntityStateMachine

    public class RawEntity
    extends java.lang.Object
    implements EntityStateMachine
    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.
    • Field Detail

      • stream

        private final java.io.InputStream stream
    • Constructor Detail

      • RawEntity

        RawEntity​(java.io.InputStream stream)
    • Method Detail

      • advance

        public EntityStateMachine advance()
        Description copied from interface: EntityStateMachine
        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.
        Specified by:
        advance in interface EntityStateMachine
        Returns:
        a state machine of an embedded entity, if encountered, null otherwise.
      • getContentStream

        public java.io.InputStream getContentStream()
        Returns raw data stream.
        Specified by:
        getContentStream in interface EntityStateMachine
        Returns:
        input stream
      • getFieldName

        public java.lang.String getFieldName()
        This method has no effect and always returns null.
      • getFieldValue

        public java.lang.String getFieldValue()
        This method has no effect and always returns null.