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.
|
write
public Base64EncodingOutputStream(OutputStream outputStream)
outputStream
- The output stream to which to write.public void write(int b) throws IOException
write
in class FilterOutputStream
b
- The byte.IOException
- If an I/O error occurs.public void write(byte[] b, int offset, int length) throws IOException
write
in class FilterOutputStream
b
- 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 Flushable
flush
in class FilterOutputStream
IOException
- If an I/O error occurs.public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterOutputStream
IOException
- If an I/O error occurs.Copyright © 1999–2017 Apache OODT. All rights reserved.