org.qi4j.api.util

## Class Base64Encoder

- java.lang.Object
- - org.qi4j.api.util.Base64Encoder

-     public final class Base64Encoder
      extends Object

  Base64Encoder.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static byte[]` | `decode(byte[] eData)` Decodes a base64 byte array into a byte array.
    `static String` | `decode(String s)` Decodes a base 64 String into a String.
    `static byte[]` | `encode(byte[] dData, boolean includePadding)` Encodes a byte array into a base 64 byte array.
    `static String` | `encode(String s, boolean includePadding)` Encodes a String into a base 64 String.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### encode

          public static String encode(String s,
                      boolean includePadding)

      Encodes a String into a base 64 String. The resulting encoding is chunked at 76 bytes.
      Parameters:
        `s` - String to encode.
      Returns:
        encoded string.

    - #### decode

          public static String decode(String s)
                               throws IllegalArgumentException

      Decodes a base 64 String into a String.
      Parameters:
        `s` - String to decode.
      Returns:
        encoded string.
      Throws:
        `IllegalArgumentException` - _ If the given byte array was not valid base64 encoding.

    - #### encode

          public static byte[] encode(byte[] dData,
                      boolean includePadding)

      Encodes a byte array into a base 64 byte array.
      Parameters:
        `dData` - byte array to encode.
      Returns:
        encoded byte array.

    - #### decode

          public static byte[] decode(byte[] eData)

      Decodes a base64 byte array into a byte array.

      Parameters:
        `eData` - byte array to decode.
      Returns:
        decoded byte array.
      Throws:
        `IllegalArgumentException` - thrown if the given byte array was not valid com.sun.syndication.io.impl.Base64 encoding.