gnu.mail.util

Class QPOutputStream

Known Direct Subclasses:
QOutputStream

public class QPOutputStream
extends FilterOutputStream

Quoted Printable Encoding stream.

See Also:
java.io.FilterOutputStream

Constructor Summary

QPOutputStream(OutputStream stream)
Create a new Quoted Printable Encoding stream with the default 76 bytes per line.
QPOutputStream(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.

Constructor Details

QPOutputStream

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

Parameters:
stream - Output stream


QPOutputStream

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

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

Method Details

close

public void close()
            throws IOException
Close stream.


flush

public void flush()
            throws IOException
Flush encoding buffer.


output

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

Parameters:
b - ??
value - ??


write

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

Parameters:
bytes - Byte array to write to stream


write

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

Parameters:
bytes - Byte array to read values from
offset - Offset to start reading bytes from
length - Number of bytes to read


write

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

Parameters:
b - Byte to write to the stream