| 
Compoze Software, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--java.io.FilterOutputStream
              |
              +--com.compoze.util.Base64OutputStream
This class provides an implementation of a Base 64 encoder in the form
 of an extension of FilterOutputStream. It is based on the
 implementation of BASE64EncoderStream from Sun's JDK utility
 classes.
| Fields inherited from class java.io.FilterOutputStream | 
out | 
| Constructor Summary | |
Base64OutputStream(java.io.OutputStream os)
Constructor.  | 
|
Base64OutputStream(java.io.OutputStream os,
                   int i)
Constructor.  | 
|
| Method Summary | |
 void | 
close()
Flushes and closes the stream.  | 
 void | 
encode()
Encodes the buffer.  | 
static byte[] | 
encode(byte[] abyte0)
Encodes a buffer to a new byte array.  | 
 void | 
flush()
Flushes the encoder and the underlying OutputStream. | 
 void | 
write(byte[] abyte0)
Writes a byte array.  | 
 void | 
write(byte[] abyte0,
      int i,
      int j)
Writes a byte array.  | 
 void | 
write(int i)
Writes a single byte.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public Base64OutputStream(java.io.OutputStream os,
                          int i)
os - the underlying OutputStreami - bytes per linepublic Base64OutputStream(java.io.OutputStream os)
os - the underlying OutputStream| Method Detail | 
public void write(byte[] abyte0,
                  int i,
                  int j)
           throws java.io.IOException
write in class java.io.FilterOutputStreamabyte0 - the byte array to writei - the offset in the arrayj - the lengthjava.io.IOException - if an i/o error occurred
public void write(byte[] abyte0)
           throws java.io.IOException
write in class java.io.FilterOutputStreamabyte0 - the byte array to writejava.io.IOException - if an i/o error occurred
public void write(int i)
           throws java.io.IOException
write in class java.io.FilterOutputStreamjava.io.IOException - if an i/o error occurred
public void flush()
           throws java.io.IOException
OutputStream.flush in class java.io.FilterOutputStreamjava.io.IOException - if an i/o error occurred
public void close()
           throws java.io.IOException
close in class java.io.FilterOutputStreamjava.io.IOException - if an i/o error occurred
public void encode()
            throws java.io.IOException
public static byte[] encode(byte[] abyte0)
abyte0 - the buffer
  | 
Compoze Software, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||