public abstract class AbstractBase64DecodingWriter
extends java.io.Writer
Writer implementations that decode data in base64.| Modifier and Type | Field and Description |
|---|---|
private char[] |
in |
private byte[] |
out |
private int |
rest |
| Constructor and Description |
|---|
AbstractBase64DecodingWriter() |
| Modifier and Type | Method and Description |
|---|---|
private int |
decode(char c) |
private void |
decode(char[] data,
int off) |
protected abstract void |
doWrite(byte[] b,
int len)
Write base64 decoded data.
|
private static boolean |
isWhitespace(int c) |
void |
write(char[] cbuf,
int off,
int len) |
void |
write(int c) |
void |
write(java.lang.String str,
int off,
int len) |
private static boolean isWhitespace(int c)
public final void write(char[] cbuf,
int off,
int len)
throws java.io.IOException
write in class java.io.Writerjava.io.IOExceptionpublic final void write(java.lang.String str,
int off,
int len)
throws java.io.IOException
write in class java.io.Writerjava.io.IOExceptionpublic final void write(int c)
throws java.io.IOException
write in class java.io.Writerjava.io.IOExceptionprivate int decode(char c)
throws java.io.IOException
java.io.IOExceptionprivate void decode(char[] data,
int off)
throws java.io.IOException
java.io.IOExceptionprotected abstract void doWrite(byte[] b,
int len)
throws java.io.IOException
b - the byte array containing the data to write, starting at
offset 0len - the number of bytes to writejava.io.IOException - if an I/O error occurs