|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.abstracthorizon.mercury.imap.util.Section
org.abstracthorizon.mercury.imap.util.section.PointerSection
org.abstracthorizon.mercury.imap.util.section.Body
public class Body
BODY section
Field Summary | |
---|---|
int |
from
From |
protected static org.slf4j.Logger |
logger
Logger |
boolean |
peek
Is this PEEK |
boolean |
rfc822
RFC822 keyword |
int |
to
To |
Fields inherited from class org.abstracthorizon.mercury.imap.util.section.PointerSection |
---|
child |
Constructor Summary | |
---|---|
Body()
Constructor |
Method Summary | |
---|---|
protected long |
calcSize(javax.mail.Part part)
Calculates the size of given part |
MeasuredInputStream |
getInputStream(javax.mail.internet.MimeMessage msg)
Returns measured input stream of a message |
InputStream |
getPartsInputStream(javax.mail.Part part)
Returns input stream of a part |
boolean |
hasStream()
Returns true if child exists and child is instance of HeaderSection |
protected void |
saveChanges(javax.mail.Part part)
Saves changes of the part |
protected InputStream |
skipHeaders(InputStream is)
This method skips over header in the input stream |
String |
toString()
String representation of this class |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final org.slf4j.Logger logger
public boolean peek
public int from
public int to
public boolean rfc822
Constructor Detail |
---|
public Body()
Method Detail |
---|
public MeasuredInputStream getInputStream(javax.mail.internet.MimeMessage msg) throws IOException, javax.mail.MessagingException
msg
- message
IOException
javax.mail.MessagingException
public InputStream getPartsInputStream(javax.mail.Part part) throws IOException, javax.mail.MessagingException
part
- part
IOException
javax.mail.MessagingException
protected void saveChanges(javax.mail.Part part) throws javax.mail.MessagingException
part
- part
javax.mail.MessagingException
public boolean hasStream()
true
if child exists and child is instance of HeaderSection
true
if child exists and child is instance of HeaderSection
public String toString()
toString
in class Object
protected InputStream skipHeaders(InputStream is) throws IOException
is
- input stream
IOException
protected long calcSize(javax.mail.Part part) throws IOException, javax.mail.MessagingException
part
- part
IOException
javax.mail.MessagingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |