public class Base64OutputStream
extends java.io.FilterOutputStream
| Constructor and Description |
|---|
Base64OutputStream(java.io.OutputStream out,
int flags)
Performs Base64 encoding on the data written to the stream, writing the encoded data to
another OutputStream.
|
Base64OutputStream(java.io.OutputStream out,
int flags,
boolean encode)
Performs Base64 encoding or decoding on the data written to the stream, writing the
encoded/decoded data to another OutputStream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
public Base64OutputStream(java.io.OutputStream out,
int flags)
out - the OutputStream to write the encoded data toflags - bit flags for controlling the encoder; see the constants in Base64public Base64OutputStream(java.io.OutputStream out,
int flags,
boolean encode)
out - the OutputStream to write the encoded data toflags - bit flags for controlling the encoder; see the constants in Base64encode - true to encode, false to decodepublic void write(int b)
throws java.io.IOException
write in class java.io.FilterOutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.FilterOutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.FilterOutputStreamjava.io.IOException