public class Base64InputStream
extends java.io.FilterInputStream
Much of this class was derived from v2.0.1 source published by Robert Harder at http://iharder.net/base64 and placed in the public domain. Source for this package is available on request from Partner.
Copyright 1997-2006 Partner Software, Inc.
| Constructor and Description |
|---|
Base64InputStream(java.io.InputStream in)
Constructs a Base64InputStream.
|
| Modifier and Type | Method and Description |
|---|---|
int |
read()
Reads enough of the input stream to convert from Base64 and returns the
next byte.
|
int |
read(byte[] dest,
int off,
int len)
Calls
read() repeatedly until the end of stream is reached or
len bytes are read. |
public Base64InputStream(java.io.InputStream in)
in - the InputStream from which to read Base64 data.public int read()
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read(byte[] dest,
int off,
int len)
throws java.io.IOException
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.read in class java.io.FilterInputStreamdest - array to hold valuesoff - offset for arraylen - max number of bytes to read into arrayjava.io.IOException