public class QOutputStream extends QPOutputStream
The "Q" encoding is similar to the "Quoted-Printable" content- transfer-encoding defined in RFC 2045. It is designed to allow text containing mostly ASCII characters to be decipherable on an ASCII terminal without decoding.
out| Constructor and Description |
|---|
QOutputStream (java.io.OutputStream out,
boolean word)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
encodedLength (byte[] bytes,
boolean word) |
void |
write (int c)
Write a character to the stream.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic QOutputStream(java.io.OutputStream out, boolean word)
word parameter is used to indicate whether the bytes
passed to this stream are considered to be RFC 822 "word" tokens or
"text" tokens.out - the underlying output streamword - word mode if true, text mode otherwisepublic void write(int c) throws java.io.IOException
write in class QPOutputStream c - Byte to write to the streamjava.io.IOException - IO Exception occurredpublic static int encodedLength(byte[] bytes, boolean word)