@Contract(threading=IMMUTABLE) public final class PublicSuffixListParser extends Object
| Constructor and Description |
|---|
PublicSuffixListParser() |
| Modifier and Type | Method and Description |
|---|---|
PublicSuffixList |
parse(Reader reader)
解析公共后缀列表格式。
|
List<PublicSuffixList> |
parseByType(Reader reader)
根据域类型解析公共后缀列表格式(目前支持的ICANN和PRIVATE)。
|
public PublicSuffixList parse(Reader reader) throws IOException
从文件创建阅读器时,请确保使用正确的编码(原始列表在UTF-8中)。
reader - 数据阅读器。
来电者负责关闭读者。
IOException - 从列表中读取错误
public List<PublicSuffixList> parseByType(Reader reader) throws IOException
从文件创建阅读器时,请确保使用正确的编码(原始列表在UTF-8中)。
reader - 数据阅读器。
来电者负责关闭读者。
IOException - 从列表中读取错误
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.