org.bolson
Class Base64OutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.bolson.Base64OutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class Base64OutputStream
extends java.io.OutputStream


Constructor Summary
Base64OutputStream(java.io.OutputStream out)
           
Base64OutputStream(java.io.OutputStream out, boolean htmlMode)
           
Base64OutputStream(java.io.Writer out)
           
Base64OutputStream(java.io.Writer out, boolean htmlMode)
           
 
Method Summary
 void flush()
          note, this will break the base64 stream in a non-concatenateable way
 void setHtmlMode(boolean htmlMode)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.io.OutputStream
close, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Base64OutputStream

public Base64OutputStream(java.io.OutputStream out)

Base64OutputStream

public Base64OutputStream(java.io.OutputStream out,
                          boolean htmlMode)

Base64OutputStream

public Base64OutputStream(java.io.Writer out)

Base64OutputStream

public Base64OutputStream(java.io.Writer out,
                          boolean htmlMode)
Method Detail

setHtmlMode

public void setHtmlMode(boolean htmlMode)

flush

public void flush()
           throws java.io.IOException
note, this will break the base64 stream in a non-concatenateable way

Specified by:
flush in interface java.io.Flushable
Overrides:
flush 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

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