Class PublicSuffixListParser

java.lang.Object
org.apache.http.conn.util.PublicSuffixListParser

public final class PublicSuffixListParser
extends Object
Parses the list from publicsuffix.org and configures a PublicSuffixFilter.
Since:
4.4
  • Constructor Details

  • Method Details

    • parse

      public PublicSuffixList parse​(Reader reader) throws IOException
      Parses the public suffix list format. When creating the reader from the file, make sure to use the correct encoding (the original list is in UTF-8).
      Parameters:
      reader - the data reader. The caller is responsible for closing the reader.
      Throws:
      IOException - on error while reading from list