Class PublicSuffixListParser


  • @Immutable
    public class PublicSuffixListParser
    extends java.lang.Object
    Parses the list from publicsuffix.org and configures a PublicSuffixFilter.
    Since:
    4.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void parse​(java.io.Reader list)
      Parses the public suffix list format.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • parse

        public void parse​(java.io.Reader list)
                   throws java.io.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:
        list - the suffix list. The caller is responsible for closing the reader.
        Throws:
        java.io.IOException - on error while reading from list