Class BytesBase64

  • All Implemented Interfaces:
    Bytes

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

      • BytesBase64

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

        public BytesBase64​(Bytes origin,
                           Base64.Encoder enc)
        Ctor.
        Parameters:
        origin - Origin bytes.
        enc - The encoder 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