Class Base64


  • public class Base64
    extends java.lang.Object
    This class decodes a Base64 encoded string. Taken from Xamin colde.
    • Constructor Summary

      Constructors 
      Constructor Description
      Base64()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void append​(java.lang.String input)
      Build up the string that will be decoded.
      java.io.ByteArrayInputStream getAsStream()
      Return an InputStream to the decoded data
      static void main​(java.lang.String[] args)  
      byte[] translate()
      Translate the encoded stream to a byte array
      • Methods inherited from class java.lang.Object

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

      • Base64

        public Base64()
    • Method Detail

      • append

        public void append​(java.lang.String input)
        Build up the string that will be decoded.
      • getAsStream

        public java.io.ByteArrayInputStream getAsStream()
        Return an InputStream to the decoded data
      • translate

        public byte[] translate()
        Translate the encoded stream to a byte array
      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception