Class Base64Engine

java.lang.Object
com.adobe.internal.pdftoolkit.core.filter.Base64Engine

public class Base64Engine extends Object
Base64Engine This class provides Base64 Content-Transfer-Encoding encoding and decoding. See RFC 3548 for details (http://www.ietf.org/rfc/rfc3548.txt?number=3548).
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Create an output stream that writes base64-encoded bytes to the supplied stream
    static class 
     
    static class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    decode(byte[] input, int inOffset, int length, byte[] output, int outOffset)
    Decode an array of bytes into another array of bytes return the number of output bytes If output is null, just return the output byte count
    static byte[]
     
    static char[]
    encode(byte[] input, int inOffset, int length)
     
    static int
    encode(byte[] input, int inOffset, int length, byte[] output, int outOffset)
    Encode an array of bytes into another array of bytes return the number of output bytes If output is null, just return the output byte count

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Base64Engine

      public Base64Engine()
  • Method Details

    • decode

      public static int decode(byte[] input, int inOffset, int length, byte[] output, int outOffset)
      Decode an array of bytes into another array of bytes return the number of output bytes If output is null, just return the output byte count
    • encode

      public static int encode(byte[] input, int inOffset, int length, byte[] output, int outOffset)
      Encode an array of bytes into another array of bytes return the number of output bytes If output is null, just return the output byte count
    • encode

      public static char[] encode(byte[] input, int inOffset, int length)
    • decode

      public static byte[] decode(String s)