Package de.uplanet.util.encoder
Klasse QuotedPrintableEncoder
java.lang.Object
de.uplanet.util.encoder.QuotedPrintableEncoder
Quoted-Printable encoding as described
in
RFC 2045 section 6.7.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCreates 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. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbyte[]Decodes a quoted-printable encodedString.encode(byte[] p_aby) Quoted-printable encodes aString.intReturns the indent of the first encoded line.intReturns the line length of the encoded text.voidsetLineParams(int p_iLineLength, int p_iFirstOffset) Sets line length and the indent for the first encoded line.
-
Konstruktordetails
-
QuotedPrintableEncoder
public QuotedPrintableEncoder()Creates a new encoder with default line length and indent for the first encoded line. -
QuotedPrintableEncoder
public QuotedPrintableEncoder(int p_iLineLength, int p_iFirstOffset) throws de.uplanet.util.encoder.EncoderException Creates a new encoder with the given default line length and indent for the first encoded line.- Parameter:
p_iLineLength- The line length to be used.p_iFirstOffset- The indent for the first encoded line.- Löst aus:
de.uplanet.util.encoder.EncoderException- If the arguments are invalid or incompatible.
-
-
Methodendetails
-
getFirstLineOffset
public int getFirstLineOffset()Returns the indent of the first encoded line.- Gibt zurück:
- The indent of the first encoded line.
-
getLineLength
public int getLineLength()Returns the line length of the encoded text.- Gibt zurück:
- The line length of the encoded text.
-
setLineParams
public void setLineParams(int p_iLineLength, int p_iFirstOffset) throws de.uplanet.util.encoder.EncoderException Sets line length and the indent for the first encoded line.These settings are ignored in the decoding process.
- Parameter:
p_iLineLength- The line length to be used.p_iFirstOffset- The indent for the first encoded line.- Löst aus:
de.uplanet.util.encoder.EncoderException- If the arguments are invalid or incompatible.
-
encode
Quoted-printable encodes aString.- Parameter:
p_aby- The data to encode.- Gibt zurück:
- A string representing the quoted-printable encoded data.
-
decode
Decodes a quoted-printable encodedString.- Parameter:
p_str- The string that is to be decoded.- Gibt zurück:
- The decoded data.
-