java.lang.Object
org.eclipse.persistence.internal.oxm.conversion.Base64

public class Base64 extends Object
INTERNAL:

Purpose: Convert to/from XML base64Binary.

  • Method Summary

    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
    static String
    base64EncodeToString(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 Details

    • 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
    • base64EncodeToString

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