Class Base64

  • public final class Base64
    extends Object
    This class provides encode/decode for RFC 2045 Base64 as defined by RFC 2045, N. Freed and N. Borenstein. RFC 2045: Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies. Reference 1996 Available at: This class is used by XML Schema binary format validation This implementation does not encode/decode streaming data. You need the data that you will encode/decode already on a byte arrray.
    • Constructor Detail

      • Base64

        public Base64()
    • Method Detail

      • encode

        public static byte[] encode​(byte[] binaryData)
        Encodes hex octects into Base64
        binaryData - Array containing binaryData
        Encoded Base64 array
      • decode

        public static byte[] decode​(byte[] base64Data)
        Decodes Base64 data into octects
        base64Data - Byte array containing Base64 data
        Array containind decoded data.