Class Base64Bytes

  • All Implemented Interfaces:
    Bytes

    public final class Base64Bytes
    extends Object
    implements Bytes
    Decodes all origin bytes using the Base64 encoding scheme.
    Since:
    0.20.2
    • Constructor Detail

      • Base64Bytes

        public Base64Bytes​(Bytes origin)
        Ctor uses a RFC4648 Base64.Decoder.
        Parameters:
        origin - Origin bytes
      • Base64Bytes

        public Base64Bytes​(Bytes origin,
                           Base64.Decoder dec)
        Ctor.
        Parameters:
        origin - Origin bytes.
        dec - Decoder to use.
    • Method Detail

      • asBytes

        public byte[] asBytes()
                       throws Exception
        Description copied from interface: Bytes
        Convert it to the byte array.
        Specified by:
        asBytes in interface Bytes
        Returns:
        The byte array
        Throws:
        Exception - If fails