|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.james.jdkim.impl.Message
public class Message
The header of an entity (see RFC 2045).
Constructor Summary | |
---|---|
Message()
Creates a new empty Header . |
|
Message(InputStream is)
Creates a new Header from the specified stream. |
Method Summary | |
---|---|
void |
addField(String fieldName,
String field)
Adds a field to the end of the list of fields. |
InputStream |
getBodyInputStream()
|
List |
getFields()
Gets the fields of this header. |
List |
getFields(String name)
Gets all Field s having the specified field name in a case
insensitive way. |
void |
setBodyInputStream(InputStream is)
|
String |
toString()
Return Header Object as String representation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Message()
Header
.
public Message(InputStream is) throws IOException, org.apache.james.mime4j.MimeException
Header
from the specified stream.
is
- the stream to read the header from.
IOException
- on I/O errors.
MimeIOException
- on MIME protocol violations.
org.apache.james.mime4j.MimeException
Method Detail |
---|
public InputStream getBodyInputStream()
public void setBodyInputStream(InputStream is)
public void addField(String fieldName, String field)
field
- the field to add.public List getFields()
Headers
getFields
in interface Headers
Field
objects.Headers.getFields()
public List getFields(String name)
Headers
Field
s having the specified field name in a case
insensitive way.
getFields
in interface Headers
name
- the field name (e.g. From, Subject).
Headers.getFields(java.lang.String)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |