Enum Class BsonParser.Feature

java.lang.Object
java.lang.Enum<BsonParser.Feature>
de.undercouch.bson4jackson.BsonParser.Feature
All Implemented Interfaces:
Serializable, Comparable<BsonParser.Feature>, Constable
Enclosing class:
BsonParser

public static enum BsonParser.Feature extends Enum<BsonParser.Feature>
Defines toggable features
  • Enum Constant Details

    • HONOR_DOCUMENT_LENGTH

      public static final BsonParser.Feature HONOR_DOCUMENT_LENGTH
      Honors the document length field when parsing, useful for when reading from streams that may contain other content after the document that will be read by something else.
  • Method Details

    • values

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

      public static BsonParser.Feature valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getMask

      public int getMask()
      Returns:
      the bit mask that identifies this feature