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 IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4