|
||||||||||
| 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. |
void |
writeTo(java.io.OutputStream out)
Write the content to the given outputstream |
| Methods inherited from class org.apache.james.mime4j.message.Entity |
|---|
getBody, getCharset, getContentTransferEncoding, getHeader, getMimeType, getParent, isMimeType, isMultipart, setBody, setHeader, setParent |
| 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 |
| 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.
public void writeTo(java.io.OutputStream out)
throws java.io.IOException
Entity
writeTo in interface BodywriteTo in class Entityout - the outputstream to write to
java.io.IOException - on I/O errors.Entity.writeTo(java.io.OutputStream)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||