Enum EntityState

java.lang.Object
java.lang.Enum<EntityState>
org.apache.james.mime4j.stream.EntityState
All Implemented Interfaces:
Serializable, Comparable<EntityState>, java.lang.constant.Constable

public enum EntityState extends Enum<EntityState>
Enumeration of states an entity is expected to go through in the process of the MIME stream parsing.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    This token indicates, that an atomic entity is being parsed.
    This token indicates, that the MIME stream is currently at the end of a body part.
    This token indicates, that part headers have now been parsed.
    This token indicates, that the MIME stream is currently at the end of a message.
    This token indicates, that a multipart body has been parsed.
    This token indicates, that the MIME stream has been completely and successfully parsed, and no more data is available.
    This token indicates, that a multiparts epilogue is being parsed.
    This token indicates, that a message parts field has now been parsed.
    This token indicates, that a multiparts preamble is being parsed.
    This token indicates, that a raw entity is currently being processed.
    This token indicates, that the MIME stream is currently at the beginning of a body part.
    This token indicates, that a message parts headers are now being parsed.
    This token indicates, that the MIME stream is currently at the beginning of a message.
    This token indicates, that a multipart body is being parsed.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this type with the specified name.
    static EntityState[]
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • T_START_MESSAGE

      public static final EntityState T_START_MESSAGE
      This token indicates, that the MIME stream is currently at the beginning of a message.
    • T_END_MESSAGE

      public static final EntityState T_END_MESSAGE
      This token indicates, that the MIME stream is currently at the end of a message.
    • T_RAW_ENTITY

      public static final EntityState T_RAW_ENTITY
      This token indicates, that a raw entity is currently being processed.
    • T_START_HEADER

      public static final EntityState T_START_HEADER
      This token indicates, that a message parts headers are now being parsed.
    • T_FIELD

      public static final EntityState T_FIELD
      This token indicates, that a message parts field has now been parsed.
    • T_END_HEADER

      public static final EntityState T_END_HEADER
      This token indicates, that part headers have now been parsed.
    • T_START_MULTIPART

      public static final EntityState T_START_MULTIPART
      This token indicates, that a multipart body is being parsed.
    • T_END_MULTIPART

      public static final EntityState T_END_MULTIPART
      This token indicates, that a multipart body has been parsed.
    • T_PREAMBLE

      public static final EntityState T_PREAMBLE
      This token indicates, that a multiparts preamble is being parsed.
    • T_EPILOGUE

      public static final EntityState T_EPILOGUE
      This token indicates, that a multiparts epilogue is being parsed.
    • T_START_BODYPART

      public static final EntityState T_START_BODYPART
      This token indicates, that the MIME stream is currently at the beginning of a body part.
    • T_END_BODYPART

      public static final EntityState T_END_BODYPART
      This token indicates, that the MIME stream is currently at the end of a body part.
    • T_BODY

      public static final EntityState T_BODY
      This token indicates, that an atomic entity is being parsed.
    • T_END_OF_STREAM

      public static final EntityState T_END_OF_STREAM
      This token indicates, that the MIME stream has been completely and successfully parsed, and no more data is available.
  • Constructor Details

    • EntityState

      private EntityState()
  • Method Details

    • values

      public static EntityState[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static EntityState valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null