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
Field s 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()
Headers
getFields
in interface Headers
Field
objects.Headers.getFields()
public List<String> 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()
public void dispose()
Copyright © 2008–2015. All rights reserved.