Save This Page
Home » iText-2.1.7 » com.lowagie » text » pdf » codec » [javadoc | source]
com.lowagie.text.pdf.codec
public static class: Base64.InputStream [javadoc | source]
java.lang.Object
   java.io.InputStream
      java.io.FilterInputStream
         com.lowagie.text.pdf.codec.Base64$InputStream

All Implemented Interfaces:
    Closeable

A Base64.InputStream will read data from another java.io.InputStream, given in the constructor, and encode/decode to/from Base64 notation on the fly.
Fields inherited from java.io.FilterInputStream:
in
Constructor:
 public InputStream(InputStream in) 
    Parameters:
    in - the java.io.InputStream from which to read data.
    since: 1.3 -
 public InputStream(InputStream in,
    int options) 
    Constructs a Base64.InputStream in either ENCODE or DECODE mode.

    Valid options:

      ENCODE or DECODE: Encode or Decode as data is read.
      DONT_BREAK_LINES: don't break lines at 76 characters
        (only meaningful when encoding)
        Note: Technically, this makes your encoding non-compliant.
    

    Example: new Base64.InputStream( in, Base64.DECODE )

    Parameters:
    in - the java.io.InputStream from which to read data.
    options - Specified options
    Also see:
    Base64#ENCODE
    Base64#DECODE
    Base64#DONT_BREAK_LINES
    since: 2.0 -
Method from com.lowagie.text.pdf.codec.Base64$InputStream Summary:
read,   read
Methods from java.io.FilterInputStream:
available,   close,   mark,   markSupported,   read,   read,   read,   reset,   skip
Methods from java.io.InputStream:
available,   close,   mark,   markSupported,   read,   read,   read,   reset,   skip
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.lowagie.text.pdf.codec.Base64$InputStream Detail:
 public int read() throws IOException 
    Reads enough of the input stream to convert to/from Base64 and returns the next byte.
 public int read(byte[] dest,
    int off,
    int len) throws IOException 
    Calls #read() repeatedly until the end of stream is reached or len bytes are read. Returns number of bytes read into array or -1 if end of stream is encountered.