public class TokenList extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
parseTokenList(Enumeration<String> inputs,
Collection<String> collection)
Parses an enumeration of header values of the form 1#token, forcing all
parsed values to lower case.
|
static boolean |
parseTokenList(Reader input,
Collection<String> collection)
Parses a header of the form 1#token, forcing all parsed values to lower
case.
|
public static boolean parseTokenList(Enumeration<String> inputs, Collection<String> collection) throws IOException
inputs
- The headers to parsecollection
- The Collection (usually a list of a set) to which the
parsed tokens should be added
true if the header values were parsed cleanly, otherwise
false
(e.g. if a non-token value was encountered)IOException
- If an I/O error occurs reading the headerpublic static boolean parseTokenList(Reader input, Collection<String> collection) throws IOException
input
- The header to parsecollection
- The Collection (usually a list of a set) to which the
parsed tokens should be added
true if the header was parsed cleanly, otherwise
false
(e.g. if a non-token value was encountered)IOException
- If an I/O error occurs reading the headerCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.