|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.mime4j.message.Entity
org.apache.james.mime4j.message.Message
public class Message
Represents a MIME message. The following code parses a stream into a
Message object.
Message msg = new Message(new BufferedInputStream(
new FileInputStream("mime.msg")));
| Constructor Summary | |
|---|---|
Message()
Creates a new empty Message. |
|
Message(java.io.InputStream is)
Parses the specified MIME message stream into a Message
instance. |
|
| Method Summary | |
|---|---|
UnstructuredField |
getSubject()
Gets the Subject field. |
| Methods inherited from class org.apache.james.mime4j.message.Entity |
|---|
getBody, getCharset, getContentTransferEncoding, getHeader, getMimeType, getParent, isMimeType, isMultipart, setBody, setHeader, setParent, writeTo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.james.mime4j.message.Body |
|---|
getParent, setParent, writeTo |
| Constructor Detail |
|---|
public Message()
Message.
public Message(java.io.InputStream is)
throws java.io.IOException
Message
instance.
is - the stream to parse.
java.io.IOException - on I/O errors.| Method Detail |
|---|
public UnstructuredField getSubject()
Subject field.
Subject field or null if it
doesn't exist.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||