All Packages This Package Class Hierarchy Class Search Index
Class grendel.mime.encoder.MimeUUDecoder
java.lang.Object | +----grendel.mime.encoder.MimeEncoder | +----grendel.mime.encoder.MimeUUDecoder
Implements a uuencode -> plaintext decoder.
public final class MimeUUDecoder extends grendel.mime.encoder.MimeEncoder { // Fields 7 private static final int BEGIN; private static final int BODY; private static final int END; ByteBuf line_buf; private static final byte[] map; ByteBuf out_buf; int state; // Constructors 1 public MimeUUDecoder(); // Methods 3 private final void decode_line(ByteBuf); public final void eof(ByteBuf); public final void translate(ByteBuf, ByteBuf); }
Fields
map
private static final byte[] map
BEGIN
private static final int BEGIN
BODY
private static final int BODY
END
private static final int END
state
int state
line_buf
ByteBuf line_buf
out_buf
ByteBuf out_buf
Constructors
MimeUUDecoder
public MimeUUDecoder()
Default constructor
Methods
decode_line
private final void decode_line(ByteBuf out)
translate
public final void translate(ByteBuf in, ByteBuf out)
Given a sequence of input bytes in the uuencode encoding, produces a sequence of unencoded output bytes. Note that some (small) amount of buffering may be necessary, if the input byte stream didn't fall on an appropriate boundary. 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 uudecoder 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