Constructor and Description |
---|
QuotedPrintableEncoder()
Creates a new encoder with default line length
and indent for the first encoded line.
|
QuotedPrintableEncoder(int p_iLineLength,
int p_iFirstOffset)
Creates a new encoder with the given default line
length and indent for the first encoded line.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
decode(String p_str)
Decodes a quoted-printable encoded
String. |
String |
encode(byte[] p_aby)
Quoted-printable encodes a
String . |
int |
getFirstLineOffset()
Returns the indent of the first encoded line.
|
int |
getLineLength()
Returns the line length of the encoded text.
|
void |
setLineParams(int p_iLineLength,
int p_iFirstOffset)
Sets line length and the indent for the first encoded line.
|
public QuotedPrintableEncoder()
public QuotedPrintableEncoder(int p_iLineLength, int p_iFirstOffset) throws de.uplanet.util.encoder.EncoderException
p_iLineLength
- The line length to be used.p_iFirstOffset
- The indent for the first encoded line.EncoderException
- If the arguments are invalid or incompatible.public int getFirstLineOffset()
public int getLineLength()
public void setLineParams(int p_iLineLength, int p_iFirstOffset) throws de.uplanet.util.encoder.EncoderException
These settings are ignored in the decoding process.
p_iLineLength
- The line length to be used.p_iFirstOffset
- The indent for the first encoded line.EncoderException
- If the arguments are invalid or incompatible.public String encode(byte[] p_aby)
String
.p_aby
- The data to encode.public byte[] decode(String p_str)
String.
p_str
- The string that is to be decoded.