|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.mail.internet.InternetHeaders | +--org.apache.james.core.MailHeaders
This interface defines a container for mail headers. Each header must use MIME format:
name: value.
Constructor Summary | |
MailHeaders()
No argument constructor |
|
MailHeaders(InputStream in)
Constructor that takes an InputStream containing the contents of the set of mail headers. |
Method Summary | |
boolean |
isSet(String name)
Check if a particular header is present. |
boolean |
isValid()
Check if all REQUIRED headers fields as specified in RFC 822 are present. |
byte[] |
toByteArray()
Generate a representation of the headers as a series of bytes. |
void |
writeTo(OutputStream out)
Write the headers to an output stream |
void |
writeTo(PrintStream writer)
Write the headers to an PrintStream |
Methods inherited from class javax.mail.internet.InternetHeaders |
addHeader, addHeaderLine, getAllHeaderLines, getAllHeaders, getHeader, getHeader, getMatchingHeaderLines, getMatchingHeaders, getNonMatchingHeaderLines, getNonMatchingHeaders, load, removeHeader, setHeader |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MailHeaders() throws MessagingException
MessagingException
- if the super class cannot be properly instantiatedpublic MailHeaders(InputStream in) throws MessagingException
in
- the InputStream containing the header data
MessagingException
- if the super class cannot be properly instantiated
based on the streamMethod Detail |
public void writeTo(PrintStream writer)
writer
- the stream to which to write the headerspublic void writeTo(OutputStream out)
out
- the stream to which to write the headerspublic byte[] toByteArray()
public boolean isSet(String name)
public boolean isValid()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |