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
Class grendel.mime.parser.MimeXSunAttachment
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
Copyright © 1998-2000 The Mozilla Organization.
Last modified December 25, 1998.