Enum Class StandardSerialisationStyle

java.lang.Object
java.lang.Enum<StandardSerialisationStyle>
eu.cloudnetservice.driver.document.StandardSerialisationStyle
All Implemented Interfaces:
SerialisationStyle, Serializable, Comparable<StandardSerialisationStyle>, Constable

public enum StandardSerialisationStyle extends Enum<StandardSerialisationStyle> implements SerialisationStyle
Defines the standard serialisation styles. All document implementations should at least support these serialisation styles or silently convert them to a supported style. They should never throw an exception when a standard style is passed to a serialisation method.
Since:
4.0
  • Enum Constant Details

    • COMPACT

      public static final StandardSerialisationStyle COMPACT
      Uses the most efficient way to pack the document data. This style is preferred when the document is not subject to be read by a human (for example when transferred via the network).
    • PRETTY

      public static final StandardSerialisationStyle PRETTY
      Uses a human-readable style to pack the data.
  • Constructor Details

    • StandardSerialisationStyle

      private StandardSerialisationStyle()
  • Method Details

    • values

      public static StandardSerialisationStyle[] 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 StandardSerialisationStyle 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