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) |
write
public final void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
public final void write(int b) throws IOException
write
in class OutputStream
IOException
public final void complete() throws IOException
IOException
- if an I/O error occurspublic final void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public final void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
protected 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-2013 The Apache Software Foundation. All Rights Reserved.