com.hs.mail.imap.message
Class BodyFetchItem

java.lang.Object
  extended by javax.mail.FetchProfile.Item
      extended by com.hs.mail.imap.message.BodyFetchItem

public class BodyFetchItem
extends javax.mail.FetchProfile.Item

Since:
Jan 29, 2010
Author:
Won Chul Doh

Field Summary
static int CONTENT
          Entire message including the header
static int HEADER
           
static int HEADER_FIELDS
           
static int HEADER_FIELDS_NOT
           
static int MIME
          [RFC-2045] header for the part
static int TEXT
          Text body of the message, omitting the [RFC-2822] header
 
Fields inherited from class javax.mail.FetchProfile.Item
CONTENT_INFO, ENVELOPE, FLAGS
 
Constructor Summary
BodyFetchItem(String name, boolean peek)
           
BodyFetchItem(String name, boolean peek, int sectionType)
           
 
Method Summary
 void addPath(int part)
           
 long getFirstOctet()
           
 String[] getHeaders()
           
 String getName()
           
 long getNumberOfOctets()
           
 int[] getPath()
           
 int getSectionType()
           
 boolean isPeek()
           
 void setFirstOctet(long firstOctet)
           
 void setHeaders(String[] headers)
           
 void setName(String name)
           
 void setNumberOfOctets(long numberOfOctets)
           
 void setPeek(boolean peek)
           
 void setSectionType(int sectionType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HEADER_FIELDS_NOT

public static final int HEADER_FIELDS_NOT
See Also:
Constant Field Values

HEADER_FIELDS

public static final int HEADER_FIELDS
See Also:
Constant Field Values

HEADER

public static final int HEADER
See Also:
Constant Field Values

TEXT

public static final int TEXT
Text body of the message, omitting the [RFC-2822] header

See Also:
Constant Field Values

MIME

public static final int MIME
[RFC-2045] header for the part

See Also:
Constant Field Values

CONTENT

public static final int CONTENT
Entire message including the header

See Also:
Constant Field Values
Constructor Detail

BodyFetchItem

public BodyFetchItem(String name,
                     boolean peek)

BodyFetchItem

public BodyFetchItem(String name,
                     boolean peek,
                     int sectionType)
Method Detail

getName

public String getName()

setName

public void setName(String name)

setPeek

public void setPeek(boolean peek)

isPeek

public boolean isPeek()

setSectionType

public void setSectionType(int sectionType)

getSectionType

public int getSectionType()

setHeaders

public void setHeaders(String[] headers)

getHeaders

public String[] getHeaders()

addPath

public void addPath(int part)

getPath

public int[] getPath()

setFirstOctet

public void setFirstOctet(long firstOctet)

getFirstOctet

public long getFirstOctet()

setNumberOfOctets

public void setNumberOfOctets(long numberOfOctets)

getNumberOfOctets

public long getNumberOfOctets()


Copyright © 2011. All Rights Reserved.