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 newHeaderfrom the specified stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Make sure to dispose the message once used.InputStreamgetBodyInputStream()List<String>getFields()Gets the fields of this header.List<String>getFields(String name)Gets allFields having the specified field name in a case insensitive way.StringtoString()Return Header Object as String representation.
-
-
-
Constructor Detail
-
Message
public Message(InputStream is) throws IOException, org.apache.james.mime4j.MimeException
Creates a newHeaderfrom 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:HeadersGets the fields of this header. The returned list will not be modifiable.- Specified by:
getFieldsin interfaceHeaders- Returns:
- the list of
Fieldobjects. - See Also:
Headers.getFields()
-
getFields
public List<String> getFields(String name)
Description copied from interface:HeadersGets allFields having the specified field name in a case insensitive way.- Specified by:
getFieldsin 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.
-
-