![]() |
|
|
All Packages This Package Class Hierarchy Class Search Index Class grendel.mime.parser.MimeDwimTextjava.lang.Object | +----grendel.mime.parser.MimeObject | +----grendel.mime.parser.MimeContainer | +----grendel.mime.parser.MimeDwimText This class implements a parser for untyped message contents, that is, it is the class used for the body of a message/rfc822 object which had no Content-Type header, as opposed to an unrecognized content-type. Such a message, technically, does not contain MIME data (it follows only RFC 822, not RFC 1521.) This is a container class, and the reason for that is that it loosely parses the body of the message looking for ``sub-parts'' and then creates appropriate containers for them. More specifically, it looks for uuencoded and BinHexed data. It may do more than that some day. (DWIM stands for ``Do What I Mean.'')
See Also: MimeMultipart, MimeXSunAttachment
class MimeDwimText
extends grendel.mime.parser.MimeContainer
{
// Fields 9
private static final int BINHEX;
private static final int TEXT;
private static final int UUE;
ByteLineBuffer line_buffer;
ByteBuf line_bytes;
String subpart_encoding;
String subpart_name;
String subpart_type;
int type;
// Constructors 1
public MimeDwimText(String, InternetHeaders);
// Methods 9
boolean binhex_begin_line_p(byte[], int);
boolean binhex_end_line_p(byte[], int);
String name_to_content_type(String);
void open_untyped_child();
void process_line(ByteBuf);
public void pushBytes(ByteBuf);
public void pushEOF();
boolean uue_begin_line_p(byte[], int);
boolean uue_end_line_p(byte[], int);
}
Fields line_bufferByteLineBuffer line_buffer line_bytesByteBuf line_bytes TEXTprivate static final int TEXT UUEprivate static final int UUE BINHEXprivate static final int BINHEX typeint type subpart_nameString subpart_name subpart_typeString subpart_type subpart_encodingString subpart_encoding
Constructors MimeDwimTextpublic MimeDwimText(String content_type, InternetHeaders headers) Methods pushBytespublic void pushBytes(ByteBuf bytes)
pushEOFpublic void pushEOF()
process_linevoid process_line(ByteBuf line_buf)
open_untyped_childvoid open_untyped_child() uue_begin_line_p
boolean uue_begin_line_p(byte[] line,
int length)
uue_end_line_p
boolean uue_end_line_p(byte[] line,
int length)
binhex_begin_line_p
boolean binhex_begin_line_p(byte[] line,
int length)
binhex_end_line_p
boolean binhex_end_line_p(byte[] line,
int length)
name_to_content_typeString name_to_content_type(String filename) All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4
|
|||||||
| Copyright © 1998 The Mozilla Organization. | ||||||||