Package org.apache.axiom.util.base64
Class AbstractBase64DecodingWriter
- java.lang.Object
-
- java.io.Writer
-
- org.apache.axiom.util.base64.AbstractBase64DecodingWriter
-
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
- Direct Known Subclasses:
Base64DecodingOutputStreamWriter
public abstract class AbstractBase64DecodingWriter extends Writer
Base class forWriterimplementations that decode data in base64.
-
-
Constructor Summary
Constructors Constructor Description AbstractBase64DecodingWriter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voiddoWrite(byte[] b, int len)Write base64 decoded data.voidwrite(char[] cbuf, int off, int len)voidwrite(int c)voidwrite(String str, int off, int len)
-
-
-
Method Detail
-
write
public final void write(char[] cbuf, int off, int len) throws IOException- Specified by:
writein classWriter- Throws:
IOException
-
write
public final void write(String str, int off, int len) throws IOException
- Overrides:
writein classWriter- Throws:
IOException
-
write
public final void write(int c) throws IOException- Overrides:
writein classWriter- Throws:
IOException
-
doWrite
protected abstract void doWrite(byte[] b, int len) throws IOExceptionWrite 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.- 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
-
-