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 addedfalse (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 addedfalse (e.g. if a non-token value was encountered)IOException - If an I/O error occurs reading the headerCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.