Package org.apache.axiom.util.base64
Class Base64DecodingOutputStreamWriter
- java.lang.Object
-
- java.io.Writer
-
- org.apache.axiom.util.base64.AbstractBase64DecodingWriter
-
- org.apache.axiom.util.base64.Base64DecodingOutputStreamWriter
-
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
public class Base64DecodingOutputStreamWriter extends AbstractBase64DecodingWriter
Writerimplementation that decodes base64 data and writes it to a anOutputStream.
-
-
Constructor Summary
Constructors Constructor Description Base64DecodingOutputStreamWriter(OutputStream stream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected voiddoWrite(byte[] b, int len)Write base64 decoded data.voidflush()-
Methods inherited from class org.apache.axiom.util.base64.AbstractBase64DecodingWriter
write, write, write
-
-
-
-
Constructor Detail
-
Base64DecodingOutputStreamWriter
public Base64DecodingOutputStreamWriter(OutputStream stream)
-
-
Method Detail
-
doWrite
protected void doWrite(byte[] b, int len) throws IOExceptionDescription copied from class:AbstractBase64DecodingWriterWrite base64 decoded data. If necessary, the implementation should accumulate the data in a buffer before writing it to the underlying stream. The maximum number of bytes passed to this method in a single call is 3.- Specified by:
doWritein classAbstractBase64DecodingWriter- Parameters:
b- the byte array containing the data to write, starting at offset 0len- the number of bytes to write- Throws:
IOException- if an I/O error occurs
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Specified by:
flushin classWriter- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classWriter- Throws:
IOException
-
-