The Mozilla
Organization
At A Glance
Feedback
Get Involved
Newsgroups
License Terms
Newsbot
Developer Docs
Roadmap
Projects
Ports
Module Owners
Hacking
Get the Source
Build It
Testing
Download
Bugzilla
Bug Writing
Tools
View Source
Tree Status
New Checkins
Submit A Bug
FAQ
Search
Interface grendel.mime.IMimeObject
All Packages  This Package  Class Hierarchy  Class Search  Index

Interface grendel.mime.IMimeObject

This is an interface for extracting information from a MIME part, or a tree of MIME parts.

See Also: IMimeParser, IMimeOperator


public interface  IMimeObject
{
          // Methods 4
     public abstract Enumeration children();
     public abstract String contentType();
     public abstract InternetHeaders headers();
     public abstract String partID();
}



Methods


contentType

   public abstract String contentType() 

Returns the MIME content-type of this object. Note that under certain conditions, this may disagree with the content-type in the object's headers: the value returned by contentType() takes priority. Note also that the content-type may be null, in the specific case of the top-level body of a non-MIME message.



headers

   public abstract InternetHeaders headers() 

Returns the headers which describe this object. This may be null in some cases, including the case of the outermost object. These headers describe the object itself, not the contents of the object: so, for a message/rfc822 object, these would be the headers which contained a Content-Type of message/rfc822. The interior headers, those describing the body of the object, are found in the child.



children

   public abstract Enumeration children() 

Returns the children of the object, or null if it has no children or is not a container at all.



partID

   public abstract String partID() 

Returns the ID string of the MIME part. This is the parent-relative index string, like "1.2.3" as found in mailbox: and news: URLs. This will be null for the outermost part. The first child of the outer part is "1"; the third child of that child is "1.3"; and so on.



All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4
Copyright © 1998-1999 The Mozilla Organization.
Last modified December 25, 1998.