public class Base64OutputStream extends OutputStream
Constructor and Description |
---|
Base64OutputStream(Writer out) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Call this method to indicate end of data stream
and to append any padding characters if necessary.
|
void |
finish()
Deprecated.
use the close() method instead.
|
void |
flush() |
void |
write(byte[] b,
int off,
int len)
Writes len bytes from the specified byte array starting at offset off
to this output stream.
|
void |
write(int b)
Takes a byte writes it out to the writer
|
write
public Base64OutputStream(Writer out)
public void write(int b) throws IOException
write
in class OutputStream
b
- a byteIOException
public void write(byte[] b, int off, int len) throws IOException, NullPointerException
write
in class OutputStream
b
- the dataoff
- the start offset in the datalen
- the number of bytes to readIOException
NullPointerException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
@Deprecated public void finish() throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
Copyright © 2001-2016 The Apache Software Foundation. All Rights Reserved.