|
||||||||||
| 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
org.apache.axiom.util.base64.Base64EncodingStringBufferOutputStream
public class Base64EncodingStringBufferOutputStream
OutputStream implementation that writes base64 encoded data to a StringBuffer or
StringBuilder. The data is not buffered before writing it to the target.
| Constructor Summary | |
|---|---|
Base64EncodingStringBufferOutputStream(StringBuffer buffer)
Constructor. |
|
Base64EncodingStringBufferOutputStream(StringBuilder buffer)
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
doClose()
Close the underlying stream, if applicable. |
protected void |
doFlush()
Flush the underlying stream, if applicable. |
protected void |
doWrite(byte[] b)
Write base64 encoded data. |
protected void |
flushBuffer()
Write any pending data to the underlying stream, if applicable. |
| Methods inherited from class org.apache.axiom.util.base64.AbstractBase64EncodingOutputStream |
|---|
close, complete, flush, write, write |
| 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 Base64EncodingStringBufferOutputStream(StringBuffer buffer)
buffer - the buffer to append the encoded data topublic Base64EncodingStringBufferOutputStream(StringBuilder buffer)
buffer - the buffer to append the encoded data to| Method Detail |
|---|
protected void doWrite(byte[] b)
throws IOException
AbstractBase64EncodingOutputStream
doWrite in class AbstractBase64EncodingOutputStreamb - a byte array of length 4
IOException - if an I/O error occurs
protected void flushBuffer()
throws IOException
AbstractBase64EncodingOutputStream
flushBuffer in class AbstractBase64EncodingOutputStreamIOException - if an I/O error occurs
protected void doClose()
throws IOException
AbstractBase64EncodingOutputStream
doClose in class AbstractBase64EncodingOutputStreamIOException - if an I/O error occurs
protected void doFlush()
throws IOException
AbstractBase64EncodingOutputStream
doFlush in class AbstractBase64EncodingOutputStreamIOException - if an I/O error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||