public class EncodedWords extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
bConversionError
Indicates whether there were errors during character conversion.
|
boolean |
bIsValid
Indicates where the encoded words could be validated and decoded.
|
boolean |
bValidCharset
Indicates whether the charset is valid or not.
|
protected static int |
CC_CONTROL
Control character characteristic.
|
protected static int |
CC_SEPARATOR_WS
Separator character characteristic.
|
protected static byte[] |
charCharacteristicsTab
Table of separator and control characters.
|
java.lang.String |
charsetStr
Raw charset name.
|
java.lang.String |
decoded_text
Decoded text, after decoding and character conversion.
|
static int |
ENC_BASE64
Base64 encoding id.
|
static int |
ENC_QUOTEDPRINTABLE
Quoted-Printable encoding id.
|
java.lang.String |
encoded_text
Raw encoded text string
|
int |
encoding
Identified encoding, 0 indicates an unknown encoding.
|
java.lang.String |
encodingStr
Raw encoding name.
|
byte[] |
line
Raw bytes parsed, usable to re-insert original string after validation.
|
protected static int |
S_CHARSET
Reading the charset state.
|
protected static int |
S_ENCODED_WORDS
Reading the encoded words state.
|
protected static int |
S_ENCODING
Reading the encoding state.
|
protected static int |
S_END_EQ
Looking for the last equal sign state.
|
protected static int |
S_START_EQ
Looking for an equal sign state.
|
protected static int |
S_START_QM
Looking for a question mark state.
|
protected static java.lang.String |
separators
rfc2616 separator minus space and tab.
|
| Constructor and Description |
|---|
EncodedWords() |
| Modifier and Type | Method and Description |
|---|---|
static EncodedWords |
parseEncodedWords(java.io.InputStream in,
boolean bParseEqQm)
Attempt to validate and decode an encoded-word from the input stream.
|
protected static final int S_START_EQ
protected static final int S_START_QM
protected static final int S_CHARSET
protected static final int S_ENCODING
protected static final int S_ENCODED_WORDS
protected static final int S_END_EQ
public static final int ENC_BASE64
public static final int ENC_QUOTEDPRINTABLE
protected static final int CC_CONTROL
protected static final int CC_SEPARATOR_WS
protected static final java.lang.String separators
protected static final byte[] charCharacteristicsTab
public boolean bValidCharset
public java.lang.String charsetStr
public int encoding
public java.lang.String encodingStr
public java.lang.String encoded_text
public boolean bConversionError
public java.lang.String decoded_text
public byte[] line
public boolean bIsValid
public EncodedWords()
public static EncodedWords parseEncodedWords(java.io.InputStream in, boolean bParseEqQm) throws java.io.IOException
in - input stream containing a possible encoded-wordbParseEqQm - true if we should look for leading "=?", false if notjava.io.IOException - if an I/O error occurs during parsingCopyright © 2011–2023. All rights reserved.