⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
gnu.mail.util

Class QPOutputStream

FilterOutputStream
|
+--gnu.mail.util.QPOutputStream

Known Direct Subclasses:
QOutputStream


public class QPOutputStream
extends FilterOutputStream

Quoted Printable Encoding stream.
Authors:
Andrew Selkirk
See Also:
java.io.FilterOutputStream

Constructor Summary

QPOutputStream(OutputStream stream, int length)

Create a new Quoted Printable Encoding stream.

QPOutputStream(OutputStream stream)

Create a new Quoted Printable Encoding stream with the default 76 bytes per line.

Method Summary

void

close()

Close stream.

void

flush()

Flush encoding buffer.

void

output(int b, boolean value)

????

void

write(byte[] bytes, int offset, int length)

Write bytes to encoding stream.

void

write(byte[] bytes)

Write bytes to 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()

Close stream.

Throws:
- IO Exception occurred

flush

public void flush()

Flush encoding buffer.

Throws:
- IO Exception occurred

output

protected void output(int b, boolean value)

????

Parameters:
b - ??
value - ??
Throws:
- IO Exception occurred

write

public void write(byte[] bytes)

Write bytes to stream.

Parameters:
bytes - Byte array to write to stream
Throws:
- IO Exception occurred

write

public void write(byte[] bytes, int offset, int length)

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
Throws:
- IO Exception occurred

write

public void write(int b)

Write a byte to the stream.

Parameters:
b - Byte to write to the stream
Throws:
- IO Exception occurred