|
|||||||||
| Home >> All >> gnu >> mail >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
gnu.mail.util
Class QInputStream

java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
gnu.mail.util.QPInputStream
gnu.mail.util.QInputStream
- All Implemented Interfaces:
- java.io.Closeable
- public class QInputStream
- extends QPInputStream
Provides RFC 2047 "B" transfer encoding. See section 4.2:
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.
- Any 8-bit value may be represented by a "=" followed by two hexadecimal digits. For example, if the character set in use were ISO-8859-1, the "=" character would thus be encoded as "=3D", and a SPACE by "=20". (Upper case should be used for hexadecimal digits "A" through "F".)
- The 8-bit hexadecimal value 20 (e.g., ISO-8859-1 SPACE) may be represented as "_" (underscore, ASCII 95.). (This character may not pass through some internetwork mail gateways, but its use will greatly enhance readability of "Q" encoded data with mail readers that do not support this encoding.) Note that the "_" always represents hexadecimal 20, even if the SPACE character occupies a different code position in the character set in use.
- 8-bit values which correspond to printable ASCII characters other
than "=", "?", and "_" (underscore), MAY be represented as those
characters. (But see section 5 for restrictions.) In
particular, SPACE and TAB MUST NOT be represented as themselves
within encoded words.
Field Summary private static intEQ
private static intSPACE
private static intUNDERSCORE
Fields inherited from class gnu.mail.util.QPInputStream buf, spaceCountFields inherited from class java.io.FilterInputStream inConstructor Summary QInputStream(java.io.InputStream in)
Constructor.Method Summary intread()
Read a character.Methods inherited from class gnu.mail.util.QPInputStream available, markSupported, readMethods inherited from class java.io.FilterInputStream close, mark, read, reset, skipMethods inherited from class java.lang.Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitField Detail SPACE
private static final int SPACE
- See Also:
- Constant Field Values
EQ
private static final int EQ
- See Also:
- Constant Field Values
UNDERSCORE
private static final int UNDERSCORE
- See Also:
- Constant Field Values
Constructor Detail QInputStream
public QInputStream(java.io.InputStream in)
- Constructor.
Method Detail read
public int read() throws java.io.IOException- Read a character.
- Overrides:
readin classQPInputStream
Overview Package Class Use Deprecated Index Home >> All >> gnu >> mail >> [ util overview ] PREV CLASS NEXT CLASS SUMMARY:
JAVADOC |
SOURCE |
DOWNLOAD | NESTED | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD
