Package org.apache.james.jdkim.impl
Class Message
- java.lang.Object
-
- org.apache.james.jdkim.impl.Message
-
-
Constructor Summary
Constructors Constructor Description Message(InputStream is)
Creates a newHeader
from the specified stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Make sure to dispose the message once used.InputStream
getBodyInputStream()
List<String>
getFields()
Gets the fields of this header.List<String>
getFields(String name)
Gets allField
s having the specified field name in a case insensitive way.String
toString()
Return Header Object as String representation.
-
-
-
Constructor Detail
-
Message
public Message(InputStream is) throws IOException, org.apache.james.mime4j.MimeException
Creates a newHeader
from the specified stream.- Parameters:
is
- the stream to read the header from.- Throws:
IOException
- on I/O errors.org.apache.james.mime4j.MimeException
- on MIME protocol violations.
-
-
Method Detail
-
getBodyInputStream
public InputStream getBodyInputStream()
-
getFields
public List<String> getFields()
Description copied from interface:Headers
Gets the fields of this header. The returned list will not be modifiable.- Specified by:
getFields
in interfaceHeaders
- Returns:
- the list of
Field
objects. - See Also:
Headers.getFields()
-
getFields
public List<String> getFields(String name)
Description copied from interface:Headers
Gets allField
s having the specified field name in a case insensitive way.- Specified by:
getFields
in interfaceHeaders
- Parameters:
name
- the field name (e.g. From, Subject).- Returns:
- the list of fields.
- See Also:
Headers.getFields(java.lang.String)
-
toString
public String toString()
Return Header Object as String representation. Each headerline is seperated by "\r\n"
-
dispose
public void dispose()
Make sure to dispose the message once used.
-
-