|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
org.apache.axiom.util.base64.AbstractBase64EncodingOutputStream
public abstract class AbstractBase64EncodingOutputStream
Base class for OutputStream
implementations that encode data in base64.
Constructor Summary | |
---|---|
AbstractBase64EncodingOutputStream()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.io.OutputStream |
---|
write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractBase64EncodingOutputStream()
Method Detail |
---|
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 class OutputStream
IOException
protected abstract void doWrite(byte[] b) throws IOException
b
- a byte array of length 4
IOException
- 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 occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |