You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



All Packages  This Package  Class Hierarchy  Class Search  Index

Class grendel.mime.parser.MimeMessageRFC822

java.lang.Object
   |
   +----grendel.mime.parser.MimeObject
           |
           +----grendel.mime.parser.MimeContainer
                   |
                   +----grendel.mime.parser.MimeMessageRFC822

This class implements the parser for the message/rfc822 and message/news MIME containers, which is to say, mail and news messages. This is a container which holds exactly one child, the body: messages with multiple parts are those which have a multipart/ as their body.

See Also: MimeMultipart, MimeLeaf


class  MimeMessageRFC822
     extends grendel.mime.parser.MimeContainer
{
          // Fields 3
     InternetHeaders child_headers;
     ByteLineBuffer line_buffer;
     ByteBuf line_bytes;

          // Constructors 1
     public MimeMessageRFC822(String, InternetHeaders);

          // Methods 3
     void process_line(ByteBuf);
     public void pushBytes(ByteBuf);
     public void pushEOF();
}



Fields


line_buffer

   ByteLineBuffer line_buffer


line_bytes

   ByteBuf line_bytes


child_headers

   InternetHeaders child_headers



Constructors


MimeMessageRFC822

   public MimeMessageRFC822(String content_type, 
                            InternetHeaders headers) 



Methods


pushBytes

   public void pushBytes(ByteBuf bytes) 

Buffers the bytes into lines, and calls process_line() on each line.

Overrides:
pushBytes in class MimeObject


pushEOF

   public void pushEOF() 

Flushes the line buffer, and (maybe) calls process_line() one last time.

Overrides:
pushEOF in class MimeContainer


process_line

   void process_line(ByteBuf line) 

Called for each line of this message.



All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4