All Packages This Package Class Hierarchy Class Search Index
Class grendel.mime.encoder.MimeUUEncoder
java.lang.Object | +----grendel.mime.encoder.MimeEncoder | +----grendel.mime.encoder.MimeUUEncoder
Implements a plaintext -> uuencode encoder.
public final class MimeUUEncoder extends grendel.mime.encoder.MimeEncoder { // Fields 9 private static final byte[] begin_644; private int buf; private int buf_bytes; private static final byte[] crlf; private static final byte[] end_crlf; private byte[] line; private int line_length; private static final byte[] map; private byte[] name; // Constructors 1 public MimeUUEncoder(String); // Methods 4 private final void encode_token(); public final void eof(ByteBuf); private final void flush_line(ByteBuf, int); public final void translate(ByteBuf, ByteBuf); }
Fields
name
private byte[] name
buf
private int buf
buf_bytes
private int buf_bytes
line
private byte[] line
line_length
private int line_length
begin_644
private static final byte[] begin_644
crlf
private static final byte[] crlf
end_crlf
private static final byte[] end_crlf
map
private static final byte[] map
Constructors
MimeUUEncoder
public MimeUUEncoder(String file_name)
Methods
encode_token
private final void encode_token()
flush_line
private final void flush_line(ByteBuf out, int offset)
translate
public final void translate(ByteBuf in, ByteBuf out)
Given a sequence of input bytes, produces a sequence of output bytes using uu 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 uu 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