Java javax.mail.internet InternetHeaders fields, constructors, methods, implement or subclass

Example usage for Java javax.mail.internet InternetHeaders fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.mail.internet InternetHeaders.

The text is from its open source code.

Constructor

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.

Method

voidaddHeader(String name, String value)
Add a header with the specified name and value to the header list.
EnumerationgetAllHeaderLines()
Return all the header lines as an Enumeration of Strings.
Enumeration
getAllHeaders()
Return all the headers as an Enumeration of javax.mail.Header objects.
StringgetHeader(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.
EnumerationgetNonMatchingHeaderLines(String[] names)
Return all non-matching header lines
Enumeration
getNonMatchingHeaders(String[] names)
Return all non-matching javax.mail.Header objects.
voidload(InputStream is)
Read and parse the given RFC822 message stream till the blank line separating the header from the body.
voidsetHeader(String name, String value)
Change the first header line that matches name to have value, adding a new header if no existing header matches.