| Constructor and Description |
|---|
Message(InputStream is)
Creates a new
Header from the specified stream. |
| Modifier and Type | Method and 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 all
Fields having the specified field name in a case
insensitive way. |
String |
toString()
Return Header Object as String representation.
|
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.org.apache.james.mime4j.MimeException - on MIME protocol violations.public InputStream getBodyInputStream()
public List<String> getFields()
HeadersgetFields in interface HeadersField objects.Headers.getFields()public List<String> getFields(String name)
HeadersFields having the specified field name in a case
insensitive way.getFields in interface Headersname - the field name (e.g. From, Subject).Headers.getFields(java.lang.String)public String toString()
public void dispose()
Copyright © 2008–2015. All rights reserved.