public class Base64EncodingOutputStream extends FilterOutputStream
out| Constructor and Description |
|---|
Base64EncodingOutputStream(OutputStream outputStream)
Construct a base-64 encoding output stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the stream.
|
void |
flush()
Flush the stream.
|
void |
write(byte[] b,
int offset,
int length)
Write a bunch of bytes.
|
void |
write(int b)
Write a byte of data.
|
writepublic Base64EncodingOutputStream(OutputStream outputStream)
outputStream - The output stream to which to write.public void write(int b)
throws IOException
write in class FilterOutputStreamb - The byte.IOException - If an I/O error occurs.public void write(byte[] b,
int offset,
int length)
throws IOException
write in class FilterOutputStreamb - The array to write.offset - Where in the data to start writing.length - How many bytes to write.IOException - If an I/O error occurs.public void flush()
throws IOException
flush in interface Flushableflush in class FilterOutputStreamIOException - If an I/O error occurs.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterOutputStreamIOException - If an I/O error occurs.Copyright © 1999–2017 Apache OODT. All rights reserved.