org.entityfs.support.io
Class Base64OutputStream
java.lang.Object
java.io.OutputStream
org.entityfs.support.io.OutputStreamProxy
org.entityfs.support.io.Base64OutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class Base64OutputStream
- extends OutputStreamProxy
This is an OutputStream
that base64 encodes data that is written to
it.
This class is not thread safe. It cannot be reused once it has been closed.
Base 64 conversion is defined in RFC 3548.
- Since:
- 1.0
- Author:
- Karl Gustafsson
Method Summary |
void |
close()
|
void |
write(byte[] b)
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
Base64OutputStream
public Base64OutputStream(OutputStream os)
write
public void write(byte[] b)
throws IOException
- Overrides:
write
in class OutputStreamProxy
- Throws:
IOException
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Overrides:
write
in class OutputStreamProxy
- Throws:
IOException
write
public void write(int b)
throws IOException
- Overrides:
write
in class OutputStreamProxy
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class OutputStreamProxy
- Throws:
IOException