i2p.susi.webmail
Class MailPart

java.lang.Object
  extended by i2p.susi.webmail.MailPart

public class MailPart
extends java.lang.Object

Author:
susi23

Field Summary
 int begin
           
 int beginBody
           
 java.lang.String boundary
           
 ReadBuffer buffer
           
 java.lang.String charset
           
 java.lang.String description
           
 java.lang.String disposition
           
 java.lang.String encoding
           
 int end
           
 java.lang.String filename
           
 java.lang.String[] headerLines
           
 boolean message
           
 boolean multipart
           
 java.lang.String name
           
 java.util.ArrayList parts
           
 java.lang.String type
           
 java.lang.String version
           
 
Constructor Summary
MailPart()
           
 
Method Summary
static java.lang.String getFirstAttribute(java.lang.String line)
           
static java.lang.String getHeaderLineAttribute(java.lang.String line, java.lang.String attributeName)
           
static void parse(Mail mail)
           
 void parse(ReadBuffer readBuffer)
           
 void parse(ReadBuffer readBuffer, int offset, int length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

headerLines

public java.lang.String[] headerLines

type

public java.lang.String type

boundary

public java.lang.String boundary

encoding

public java.lang.String encoding

name

public java.lang.String name

filename

public java.lang.String filename

description

public java.lang.String description

disposition

public java.lang.String disposition

charset

public java.lang.String charset

version

public java.lang.String version

beginBody

public int beginBody

begin

public int begin

end

public int end

parts

public java.util.ArrayList parts

multipart

public boolean multipart

message

public boolean message

buffer

public ReadBuffer buffer
Constructor Detail

MailPart

public MailPart()
Method Detail

parse

public void parse(ReadBuffer readBuffer)

parse

public void parse(ReadBuffer readBuffer,
                  int offset,
                  int length)

getFirstAttribute

public static java.lang.String getFirstAttribute(java.lang.String line)

getHeaderLineAttribute

public static java.lang.String getHeaderLineAttribute(java.lang.String line,
                                                      java.lang.String attributeName)

parse

public static void parse(Mail mail)
Parameters:
mail -