All Packages Class Hierarchy This Package Previous Next Index
Class iaik.utils.Base64OutputStream
java.lang.Object
|
+----java.io.OutputStream
|
+----java.io.FilterOutputStream
|
+----iaik.utils.Base64OutputStream
- public class Base64OutputStream
- extends FilterOutputStream
Encode a input stream to a BASE64 encoded output stream.
- See Also:
- Base64InputStream
-
Base64OutputStream(OutputStream)
- Creates a new Base64OutputStream to write data to the specified underlying output stream.
-
flush()
- Performs final processing and output to the output stream.
-
write(byte[], int, int)
- Supplies bytes to be used for Base64 encoding.
-
write(int)
- Supplies a byte to be used for Base64 encoding.
Base64OutputStream
public Base64OutputStream(OutputStream out)
- Creates a new Base64OutputStream to write data to the specified underlying output stream.
- Parameters:
- out - - the underlying output stream.
write
public synchronized void write(int b) throws IOException
- Supplies a byte to be used for Base64 encoding.
- Parameters:
- b - - the byte to be Base64 encoded.
- Throws: IOException
- if an error occurs.
- Overrides:
- write in class FilterOutputStream
write
public synchronized void write(byte in[],
int inOff,
int inLen) throws IOException
- Supplies bytes to be used for Base64 encoding.
- Parameters:
- in - - the buffer containing the bytes to be Base64 encoded
- inOff - - the offset into
b indicating the location
of the first byte to be used.
- inLen - - the number of bytes to read from
b,
starting at offset off.
- Throws: IOException
- If an error occurs.
- Overrides:
- write in class FilterOutputStream
flush
public synchronized void flush() throws IOException
- Performs final processing and output to the output stream.
- Throws: IOException
- If an error occurs.
- Overrides:
- flush in class FilterOutputStream
All Packages Class Hierarchy This Package Previous Next Index