http://kenai.com/bugzilla/show_bug.cgi?id=5694
Bug #: 5694
Summary: add additional "next" methods to HeaderTokenizer to
help parsing bad headers
Classification: Unclassified
Product: javamail
Version: 1.4.5
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P5
Component: internet
AssignedTo: shannon_at_kenai.com
ReportedBy: shannon_at_kenai.com
CC: issues_at_javamail.kenai.com
Add the following methods to HeaderTokenizer:
/**
* Parses the next token from this String.
* If endOfAtom is not NUL, the token extends until the
* endOfAtom character is seen, or to the end of the header.
* This method is useful when parsing headers that don't
* obey the MIME specification, e.g., by failing to quote
* parameter values that contain spaces.
*
* @param endOfAtom if not NUL, character marking end of token
* @return the next Token
* @exception ParseException if the parse fails
* @since JavaMail 1.5
*/
Token next(char endOfAtom) throws ParseException
/**
* Parses the next token from this String.
* endOfAtom is handled as above. If keepEscapes is true,
* any backslash escapes are preserved in the returned string.
* This method is useful when parsing headers that don't
* obey the MIME specification, e.g., by failing to escape
* backslashes in the filename parameter.
*
* @param endOfAtom if not NUL, character marking end of token
* @param keepEscapes keep all backslashes in returned string?
* @return the next Token
* @exception ParseException if the parse fails
* @since JavaMail 1.5
*/
Token next(char endOfAtom, boolean keepEscapes)
throws ParseException
--
Configure bugmail: http://kenai.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.