gnu.mail.util
Class QPOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by gnu.mail.util.QPOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable
Direct Known Subclasses:
QOutputStream

public class QPOutputStream
extends java.io.FilterOutputStream

Quoted Printable Encoding stream.

See Also:
FilterOutputStream

Field Summary
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
QPOutputStream(java.io.OutputStream stream)
          Create a new Quoted Printable Encoding stream with the default 76 bytes per line.
QPOutputStream(java.io.OutputStream stream, int length)
          Create a new Quoted Printable Encoding stream.
 
Method Summary
 void close()
          Close stream.
 void flush()
          Flush encoding buffer.
protected  void output(int b, boolean value)
          ????
 void write(byte[] bytes)
          Write bytes to stream.
 void write(byte[] bytes, int offset, int length)
          Write bytes to encoding stream.
 void write(int b)
          Write a byte to the stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QPOutputStream

public QPOutputStream(java.io.OutputStream stream,
                      int length)
Create a new Quoted Printable Encoding stream.

Parameters:
stream - Output stream
length - Number of bytes per line

QPOutputStream

public QPOutputStream(java.io.OutputStream stream)
Create a new Quoted Printable Encoding stream with the default 76 bytes per line.

Parameters:
stream - Output stream
Method Detail

flush

public void flush()
           throws java.io.IOException
Flush encoding buffer.

Specified by:
flush in interface java.io.Flushable
Overrides:
flush in class java.io.FilterOutputStream
Throws:
java.io.IOException - IO Exception occurred

write

public void write(byte[] bytes,
                  int offset,
                  int length)
           throws java.io.IOException
Write bytes to encoding stream.

Overrides:
write in class java.io.FilterOutputStream
Parameters:
bytes - Byte array to read values from
offset - Offset to start reading bytes from
length - Number of bytes to read
Throws:
java.io.IOException - IO Exception occurred

write

public void write(byte[] bytes)
           throws java.io.IOException
Write bytes to stream.

Overrides:
write in class java.io.FilterOutputStream
Parameters:
bytes - Byte array to write to stream
Throws:
java.io.IOException - IO Exception occurred

write

public void write(int b)
           throws java.io.IOException
Write a byte to the stream.

Overrides:
write in class java.io.FilterOutputStream
Parameters:
b - Byte to write to the stream
Throws:
java.io.IOException - IO Exception occurred

close

public void close()
           throws java.io.IOException
Close stream.

Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.FilterOutputStream
Throws:
java.io.IOException - IO Exception occurred

output

protected void output(int b,
                      boolean value)
               throws java.io.IOException
????

Parameters:
b - ??
value - ??
Throws:
java.io.IOException - IO Exception occurred