Class Base64


  • public class Base64
    extends java.lang.Object
    INTERNAL:

    Purpose: Convert to/from XML base64Binary.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] base64Decode​(byte[] data)
      base64Binary data is likely to be long, and decoding requires each character to be accessed twice (once for counting length, another for decoding.) This method decodes the given byte[] using the java.util.Base64
      static byte[] base64Encode​(byte[] data)
      This method encodes the given byte[] using java.util.Base64
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • base64Decode

        public static byte[] base64Decode​(byte[] data)
        base64Binary data is likely to be long, and decoding requires each character to be accessed twice (once for counting length, another for decoding.) This method decodes the given byte[] using the java.util.Base64
        Parameters:
        data - the base64-encoded data.
        Returns:
        the decoded data.
      • base64Encode

        public static byte[] base64Encode​(byte[] data)
        This method encodes the given byte[] using java.util.Base64
        Parameters:
        data - the data
        Returns:
        the base64-encoded data