com.tensegrity.generic.util
Class Base64.InputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.tensegrity.generic.util.Base64.InputStream
- Enclosing class:
- Base64
- public static class Base64.InputStream
- extends java.io.FilterInputStream
Provides Base64 en- or decoding as an
InputStream.
- Version:
- $Id: Base64.java,v 1.13 2004/07/30 11:09:10 sr Exp $
- Author:
- Andreas Ebbert
| Fields inherited from class java.io.FilterInputStream |
in |
|
Constructor Summary |
Base64.InputStream(java.io.InputStream in)
Constructor specifying the InputStream to use.
|
Base64.InputStream(java.io.InputStream in,
boolean encode)
Constructor specifying the InputStream and modus to use. |
Base64.InputStream(java.io.InputStream in,
boolean encode,
boolean breakLines)
Constructor specifying the InputStream and modus to use
and if lines should be wrapped. |
|
Method Summary |
int |
read()
|
int |
read(byte[] dest,
int off,
int len)
|
| Methods inherited from class java.io.FilterInputStream |
available, close, mark, markSupported, read, reset, skip |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Base64.InputStream
public Base64.InputStream(java.io.InputStream in)
- Constructor specifying the
InputStream to use.
The given input is decoded.
- Parameters:
in - the InputStream from which to read data.
Base64.InputStream
public Base64.InputStream(java.io.InputStream in,
boolean encode)
- Constructor specifying the
InputStream and modus to use.
- Parameters:
in - the InputStream from which to read data.encode - the modus switch: if true, data is
encoded. if false, data will be decoded.
Base64.InputStream
public Base64.InputStream(java.io.InputStream in,
boolean encode,
boolean breakLines)
- Constructor specifying the
InputStream and modus to use
and if lines should be wrapped.
- Parameters:
in - the InputStream from which to read data.encode - the modus switch: if true, data is
encoded. if false, data will be decoded.breakLines - if true, a new line character will be
inserted every 80 read characters.
read
public int read()
throws java.io.IOException
- Throws:
java.io.IOException
read
public int read(byte[] dest,
int off,
int len)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.