@Immutable public final class PublicSuffixListParser extends java.lang.Object
| Constructor and Description |
|---|
PublicSuffixListParser() |
| Modifier and Type | Method and Description |
|---|---|
PublicSuffixList |
parse(java.io.Reader reader)
Parses the public suffix list format.
|
java.util.List<PublicSuffixList> |
parseByType(java.io.Reader reader)
Parses the public suffix list format by domain type (currently supported ICANN and PRIVATE).
|
public PublicSuffixList parse(java.io.Reader reader) throws java.io.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.java.io.IOException - on error while reading from listpublic java.util.List<PublicSuffixList> parseByType(java.io.Reader reader) throws java.io.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.java.io.IOException - on error while reading from list