public static class Base64.DecoderWriter
extends java.io.Writer
Base64.DecoderWriter
will write binary data to a
java.io.OutputStream, given in the constructor,
while decoding the Base64 characters you write.Base64
Constructor and Description |
---|
DecoderWriter(java.io.OutputStream out)
Constructs a
Base64.DecoderWriter . |
Modifier and Type | Method and Description |
---|---|
void |
close()
Flushes and closes (I think, in the superclass) the stream.
|
void |
flush()
Method added by PHIL.
|
void |
write(char theChar)
Writes the char to the output stream after
converting from Base64 notation.
|
void |
write(char[] theChars,
int off,
int len)
Calls
write(char) repeatedly until len
chars are written. |
public DecoderWriter(java.io.OutputStream out)
Base64.DecoderWriter
.out
- the java.io.OutputStream to which data will be written.public void write(char theChar) throws java.io.IOException
theChar
- the byte to writejava.io.IOException
public void write(char[] theChars, int off, int len) throws java.io.IOException
write(char)
repeatedly until len
chars are written.write
in class java.io.Writer
theChars
- array from which to read charsoff
- offset for arraylen
- max number of chars to read into arrayjava.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.Writer
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.Writer
java.io.IOException