Example usage for Java javax.mail.internet InternetHeaders fields, constructors, methods, implement or subclass
The text is from its open source code.
InternetHeaders(InputStream is) Read and parse the given RFC822 message stream till the blank line separating the header from the body. | |
InternetHeaders() Create an empty InternetHeaders object. |
void | addHeader(String name, String value) Add a header with the specified name and value to the header list. |
Enumeration | getAllHeaderLines() Return all the header lines as an Enumeration of Strings. |
Enumeration | getAllHeaders() Return all the headers as an Enumeration of javax.mail.Header objects. |
String | getHeader(String name, String delimiter) Get all the headers for this header name, returned as a single String, with headers separated by the delimiter. |
String[] | getHeader(String name) Return all the values for the specified header. |
Enumeration | getNonMatchingHeaderLines(String[] names) Return all non-matching header lines |
Enumeration | getNonMatchingHeaders(String[] names) Return all non-matching javax.mail.Header objects. |
void | load(InputStream is) Read and parse the given RFC822 message stream till the blank line separating the header from the body. |
void | setHeader(String name, String value) Change the first header line that matches name to have value, adding a new header if no existing header matches. |