public class TokenList
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
parseTokenList(java.util.Enumeration<java.lang.String> inputs,
java.util.Collection<java.lang.String> collection)
Parses an enumeration of header values of the form 1#token, forcing all
parsed values to lower case.
|
static boolean |
parseTokenList(java.io.Reader input,
java.util.Collection<java.lang.String> collection)
Parses a header of the form 1#token, forcing all parsed values to lower
case.
|
public static boolean parseTokenList(java.util.Enumeration<java.lang.String> inputs, java.util.Collection<java.lang.String> collection) throws java.io.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)java.io.IOException
- If an I/O error occurs reading the headerpublic static boolean parseTokenList(java.io.Reader input, java.util.Collection<java.lang.String> collection) throws java.io.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)java.io.IOException
- If an I/O error occurs reading the headerCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.