Class Base64JAXBCodec

  • All Implemented Interfaces:
    StringCodec

    public class Base64JAXBCodec
    extends java.lang.Object
    implements StringCodec
    Base64 codec implementation based on JAXB.
    Since:
    1.4.11
    • Constructor Summary

      Constructors 
      Constructor Description
      Base64JAXBCodec()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] decode​(java.lang.String base64)
      Decode the provided encoded string.
      java.lang.String encode​(byte[] data)
      Encode the provided data.
      • Methods inherited from class java.lang.Object

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

      • Base64JAXBCodec

        public Base64JAXBCodec()
    • Method Detail

      • decode

        public byte[] decode​(java.lang.String base64)
        Description copied from interface: StringCodec
        Decode the provided encoded string.
        Specified by:
        decode in interface StringCodec
        Parameters:
        base64 - the encoded string
        Returns:
        the decoded data
      • encode

        public java.lang.String encode​(byte[] data)
        Description copied from interface: StringCodec
        Encode the provided data.
        Specified by:
        encode in interface StringCodec
        Parameters:
        data - the data to encode
        Returns:
        the data encoded as string