@Immutable public final class PublicSuffixListFactory extends Object
PublicSuffixList.PublicSuffixList,
Donations| 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
Deprecated.
As of release 2.0.0, replaced by
PROPERTY_INDEX_FACTORY. |
static String |
PROPERTY_INDEX_FACTORY
Index factory.
|
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(InputStream list)
Builds a PublicSuffixList.
|
PublicSuffixList |
build(Properties properties)
Builds a PublicSuffixList with custom properties.
|
PublicSuffixList |
download()
Downloads the public suffix list.
|
Properties |
getDefaults()
Gets the bundled default properties.
|
public static final String PROPERTY_URL
PublicSuffixList.getURL(),
Constant Field Valuespublic static final String PROPERTY_CHARSET
public static final String PROPERTY_LIST_FILE
@Deprecated public static final String PROPERTY_INDEX
PROPERTY_INDEX_FACTORY.public static final String PROPERTY_INDEX_FACTORY
IndexFactory,
Constant Field Valuespublic static final String PROPERTY_FILE
build(),
Constant Field Valuespublic Properties getDefaults()
TreeIndexFactory.public PublicSuffixList build(Properties properties) throws IOException, ClassNotFoundException
properties - the properties for building the PublicSuffixList.ClassNotFoundException - If the property PROPERTY_INDEX_FACTORY is not a
IndexFactory implementationIOException - If the property PROPERTY_LIST_FILE can't be read as
a filegetDefaults()public PublicSuffixList build(InputStream list) throws IOException
list - The list.IOException - If the list can't be read as a filepublic PublicSuffixList download() throws IOException
IOException - If the list can't be downloaded.public PublicSuffixList build()
PROPERTY_FILE,
getDefaults()Copyright © 2016. All rights reserved.