public abstract class AbstractBase64EncodingOutputStream extends OutputStream
OutputStream implementations that encode data in base64.| Constructor and Description |
|---|
AbstractBase64EncodingOutputStream() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
complete()
Write out any pending data, including padding if necessary.
|
protected abstract void |
doClose()
Close the underlying stream, if applicable.
|
protected abstract void |
doFlush()
Flush the underlying stream, if applicable.
|
protected abstract void |
doWrite(byte[] b)
Write base64 encoded data.
|
void |
flush() |
protected abstract void |
flushBuffer()
Write any pending data to the underlying stream, if applicable.
|
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
writepublic final void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic final void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic final void complete()
throws IOException
IOException - if an I/O error occurspublic final void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic final void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionprotected abstract void doWrite(byte[] b)
throws IOException
b - a byte array of length 4IOException - if an I/O error occursprotected abstract void flushBuffer()
throws IOException
IOException - if an I/O error occursprotected abstract void doFlush()
throws IOException
IOException - if an I/O error occursprotected abstract void doClose()
throws IOException
IOException - if an I/O error occursCopyright © 2004–2016 The Apache Software Foundation. All rights reserved.