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 or a set) to which the
parsed tokens should be addedtrue
if the header values were parsed cleanly and at
least one token was found, 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 or a set) to which the
parsed tokens should be addedtrue
if the header values were parsed cleanly and at
least one token was found, otherwise false
(e.g. if a
non-token value was encountered)IOException
- If an I/O error occurs reading the headerCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.