All Packages This Package Class Hierarchy Class Search Index
Class grendel.mime.encoder.MimeQuotedPrintableEncoder
java.lang.Object | +----grendel.mime.encoder.MimeEncoder | +----grendel.mime.encoder.MimeQuotedPrintableEncoder
Implements a plaintext -> Quoted-Printable encoder.
public class MimeQuotedPrintableEncoder extends grendel.mime.encoder.MimeEncoder { // Fields 14 private static final byte BOL; private static final byte CR; private static final byte ESC; private static final byte LF; private static final byte NUL; private static final byte SPC; private static final byte[] crlf; private static final byte[] eq_crlf; private static final byte[] eq_crlf_crlf; boolean had_whitespace; private static final byte[] hex; byte last_code; private static final byte[] map; int output_column; // Constructors 1 public MimeQuotedPrintableEncoder(); // Methods 2 public final void eof(ByteBuf); public final void translate(ByteBuf, ByteBuf); }
Fields
had_whitespace
boolean had_whitespace
output_column
int output_column
last_code
byte last_code
NUL
private static final byte NUL
ESC
private static final byte ESC
SPC
private static final byte SPC
BOL
private static final byte BOL
CR
private static final byte CR
LF
private static final byte LF
map
private static final byte[] map
hex
private static final byte[] hex
crlf
private static final byte[] crlf
eq_crlf
private static final byte[] eq_crlf
eq_crlf_crlf
private static final byte[] eq_crlf_crlf
Constructors
MimeQuotedPrintableEncoder
public MimeQuotedPrintableEncoder()
Default constructor
Methods
translate
public final void translate(ByteBuf in, ByteBuf out)
Given a sequence of input bytes, produces a sequence of output bytes using the quoted-printable encoding. If there are bytes in `out' already, the new bytes are appended, so the caller should do `out.setLength(0)' first if that's desired.
- Overrides:
- translate in class MimeEncoder
eof
public final void eof(ByteBuf out)
Tell the quoted-printable encoder that no more input data will be forthcoming. This may result in output, as a result of flushing the internal buffer. This object must not be used again after calling eof(). If there are bytes in `out' already, the new bytes are appended, so the caller should do `out.setLength(0)' first if that's desired.
- Overrides:
- eof in class MimeEncoder
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4