@Contract(threading=STATELESS) public final class PublicSuffixListParser extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static PublicSuffixListParser |
INSTANCE
Singleton instance.
|
| 构造器和说明 |
|---|
PublicSuffixListParser() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 static final PublicSuffixListParser INSTANCE
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 listCopyright © 2023. All rights reserved.