Class BinaryDataStrategy

java.lang.Object
javax.json.bind.config.BinaryDataStrategy

public final class BinaryDataStrategy extends Object
Specifies predefined binary data handling strategies. This strategy can be set via JsonbConfig.withBinaryDataStrategy(String).
Since:
JSON Binding 1.0
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Using this strategy, binary data is encoded using the Base64 encoding scheme as specified in RFC 4648 and RFC 2045.
    static final String
    Using this strategy, binary data is encoded using the "URL and Filename safe Base64 Alphabet" as specified in Table 2 of RFC 4648.
    static final String
    Using this strategy, binary data is encoded as a byte array.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • BYTE

      public static final String BYTE
      Using this strategy, binary data is encoded as a byte array. Default encoding strategy.
      See Also:
    • BASE_64

      public static final String BASE_64
      Using this strategy, binary data is encoded using the Base64 encoding scheme as specified in RFC 4648 and RFC 2045.
      See Also:
    • BASE_64_URL

      public static final String BASE_64_URL
      Using this strategy, binary data is encoded using the "URL and Filename safe Base64 Alphabet" as specified in Table 2 of RFC 4648.
      See Also: