|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
org.apache.james.mime4j.decoder.Base64OutputStream
public class Base64OutputStream
This class has been copied from Apache MyFaces Trinidad 1.2.8 An OutputStream that encodes data in a base64 representation. It takes a Writer as its single argument to its constructor and all bytes written to the stream are correspondingly converted into Base64 and written out to the provided writer.
Constructor Summary | |
---|---|
Base64OutputStream(java.io.Writer out)
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.io.OutputStream |
---|
write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Base64OutputStream(java.io.Writer out)
Method Detail |
---|
public final void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
b
- a byte
java.io.IOException
public final void write(byte[] b, int off, int len) throws java.io.IOException, java.lang.NullPointerException
write
in class java.io.OutputStream
b
- the dataoff
- the start offset in the datalen
- the number of bytes to read
java.io.IOException
java.lang.NullPointerException
public final void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
public void finish() throws java.io.IOException
java.io.IOException
public final void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.OutputStream
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |