public class PublicSuffixListFactory extends Object
PublicSuffixList| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_CHARSET
Character encoding of the list
|
static String |
PROPERTY_FILE
Location of the default properties.
|
static String |
PROPERTY_INDEX
Index implementation.
|
static String |
PROPERTY_LIST_FILE
The factory will load the Public Suffix List from this file.
|
static String |
PROPERTY_URL
URL of the Public Suffix List.
|
| Constructor and Description |
|---|
PublicSuffixListFactory() |
| Modifier and Type | Method and Description |
|---|---|
PublicSuffixList |
build()
Builds a PublicSuffixList with the default properties.
|
PublicSuffixList |
build(Properties properties)
Builds a PublicSuffixList with custom properties.
|
Properties |
getDefaults() |
public static final String PROPERTY_URL
public static final String PROPERTY_CHARSET
public static final String PROPERTY_LIST_FILE
public static final String PROPERTY_INDEX
Index,
Constant Field Valuespublic static final String PROPERTY_FILE
build(),
Constant Field Valuespublic Properties getDefaults() throws IOException
IOExceptionpublic PublicSuffixList build(Properties properties) throws IOException, ClassNotFoundException
PROPERTY_FILE and
overwrite keys as required.IOExceptionClassNotFoundExceptionpublic PublicSuffixList build() throws IOException
TreeIndex.IOExceptionPROPERTY_FILECopyright © 2014. All Rights Reserved.