public final class PublicSuffixListParser extends Object
Constructor and Description |
---|
PublicSuffixListParser() |
Modifier and Type | Method and Description |
---|---|
PublicSuffixList |
parse(Reader reader)
Parses the public suffix list format.
|
List<PublicSuffixList> |
parseByType(Reader reader)
Parses the public suffix list format by domain type (currently supported ICANN and PRIVATE).
|
public PublicSuffixList parse(Reader reader) throws IOException
When creating the reader from the file, make sure to use the correct encoding (the original list is in UTF-8).
reader
- the data reader. The caller is responsible for closing the reader.IOException
- on error while reading from listpublic List<PublicSuffixList> parseByType(Reader reader) throws IOException
When creating the reader from the file, make sure to use the correct encoding (the original list is in UTF-8).
reader
- the data reader. The caller is responsible for closing the reader.IOException
- on error while reading from listApache CXF