|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.http.conn.util.PublicSuffixListParser
@Contract(threading=IMMUTABLE) public final class PublicSuffixListParser
Parses the list from publicsuffix.org and configures a PublicSuffixFilter.
Constructor Summary | |
---|---|
PublicSuffixListParser()
|
Method Summary | |
---|---|
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). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PublicSuffixListParser()
Method Detail |
---|
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 list
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |