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