Name
HeaderTokenizer
Synopsis
This is a utility class that breaks down RFC-822 and MIME headers into the
component parts defined by their specifications. The parts are returned as
HeaderTokenizer.Token
objects.
public class HeaderTokenizer { // Public Constructors public HeaderTokenizer( String header); public HeaderTokenizer( String header, String delimiters); public HeaderTokenizer(String header, String delimiters, boolean skipComments); // Public Constants public static final String MIME; // ="()<>@,;:\"\11 []/?=” public static final String RFC822; // ="()<>@,;:\"\11 .[]” // Inner Classes public static class Token; // Public Instance Methods public String getRemainder(); public HeaderTokenizer.Token next( ) throws javax.mail.internet.ParseException; public HeaderTokenizer.Token peek( ) throws javax.mail.internet.ParseException; }
Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.