|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jvnet.mimepull.MIMEPart
public class MIMEPart
Represents an attachment part in a MIME message. MIME message parsing is done
lazily using a pull parser, so the part may not have all the data. read()
and readOnce()
may trigger the actual parsing the message. In fact,
parsing of an attachment part may be triggered by calling read()
methods
on some other attachemnt parts. All this happens behind the scenes so the
application developer need not worry about these details.
Method Summary | |
---|---|
void |
close()
Cleans up any resources that are held by this part (for e.g. |
java.util.List<? extends Header> |
getAllHeaders()
Return all the headers |
java.lang.String |
getContentId()
Returns Content-ID MIME header for this attachment part |
java.lang.String |
getContentType()
Returns Content-Type MIME header for this attachment part |
java.util.List<java.lang.String> |
getHeader(java.lang.String name)
Return all the values for the specified header. |
void |
moveTo(java.io.File f)
|
java.io.InputStream |
read()
Can get the attachment part's content multiple times. |
java.io.InputStream |
readOnce()
Can get the attachment part's content only once. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public java.io.InputStream read()
public void close()
read()
or readOnce()
public java.io.InputStream readOnce()
public void moveTo(java.io.File f)
public java.lang.String getContentId()
public java.lang.String getContentType()
public java.util.List<java.lang.String> getHeader(java.lang.String name)
null
if no headers with the
specified name exist.
name
- header name
public java.util.List<? extends Header> getAllHeaders()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |