public abstract class AbstractBase64EncodingOutputStream
extends java.io.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) |
public final void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic final void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic final void complete()
throws java.io.IOException
java.io.IOException - if an I/O error occurspublic final void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionpublic final void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionprotected abstract void doWrite(byte[] b)
throws java.io.IOException
b - a byte array of length 4java.io.IOException - if an I/O error occursprotected abstract void flushBuffer()
throws java.io.IOException
java.io.IOException - if an I/O error occursprotected abstract void doFlush()
throws java.io.IOException
java.io.IOException - if an I/O error occursprotected abstract void doClose()
throws java.io.IOException
java.io.IOException - if an I/O error occursCopyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.