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.MimeXSunAttachment

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

This class represents the X-Sun-Attachment type, which is the Content-Type assigned by that pile of garbage called MailTool. This is not a MIME type per se, but it's very similar to multipart/mixed, so it's easy to parse. Lots of people use MailTool, so we're stuck with having to parse this idiotic, obsolete format.

See Also: MimeMultipart, MimeUntypedText


class  MimeXSunAttachment
     extends grendel.mime.parser.MimeMultipart
{
          // Constructors 1
     public MimeXSunAttachment(String, InternetHeaders);

          // Methods 5
     protected int checkBoundary(ByteBuf);
     protected void computeBoundary();
     protected void createMultipartChild();
     private String getHeader(InternetHeaders, String);
     InternetHeaders translateSunHeaders(InternetHeaders);
}



Constructors


MimeXSunAttachment

   public MimeXSunAttachment(String content_type, 
                             InternetHeaders headers) 



Methods


computeBoundary

   protected void computeBoundary() 
Overrides:
computeBoundary in class MimeMultipart


checkBoundary

   protected int checkBoundary(ByteBuf line_buf) 
Overrides:
checkBoundary in class MimeMultipart


createMultipartChild

   protected void createMultipartChild() 
Overrides:
createMultipartChild in class MimeMultipart


getHeader

   private String getHeader(InternetHeaders ih, 
                            String name) 


translateSunHeaders

   InternetHeaders translateSunHeaders(InternetHeaders in) 

Translates x-sun-attachment sub-headers to legal MIME headers.



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