public class TokenList extends Object
Modifier and Type | Method and Description |
---|---|
static void |
parseTokenList(Enumeration<String> inputs,
Collection<String> result)
Parses an enumeration of header values of the form 1#token, forcing all
parsed values to lower case.
|
static void |
parseTokenList(Reader input,
Collection<String> result)
Parses a header of the form 1#token, forcing all parsed values to lower
case.
|
public static void parseTokenList(Enumeration<String> inputs, Collection<String> result) throws IOException
inputs
- The headers to parseresult
- The Collection (usually a list of a set) to which the
parsed tokens should be addedIOException
- If an I/O error occurs reading the headerpublic static void parseTokenList(Reader input, Collection<String> result) throws IOException
input
- The header to parseresult
- The Collection (usually a list of a set) to which the
parsed tokens should be addedIOException
- If an I/O error occurs reading the headerCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.