to.etc.util
Class Base64OutputStream
java.lang.Object
java.io.OutputStream
to.etc.util.Base64OutputStream
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable
public class Base64OutputStream
- extends java.io.OutputStream
Writes all data sent to it as a base64 encoded stream to the wrapped stream.
- Author:
- Frits Jalvingh
Created on Jan 24, 2010
Method Summary |
void |
close()
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
Methods inherited from class java.io.OutputStream |
flush, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Base64OutputStream
public Base64OutputStream(java.io.OutputStream os,
boolean close)
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface java.io.Closeable
- Overrides:
close
in class java.io.OutputStream
- Throws:
java.io.IOException
write
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
- Overrides:
write
in class java.io.OutputStream
- Throws:
java.io.IOException
write
public void write(int b)
throws java.io.IOException
- Specified by:
write
in class java.io.OutputStream
- Throws:
java.io.IOException