public final class Constants extends Object
If your constant is only to be used in a single package, put it in a Constants-class in that package, and make sure it is package private (no modifiers).
If your constant is used in a single class only, put it in that class, and make sure it is private.
Remember everything placed here MUST be constants.
This class is never instantiated, so thread security is not an issue.
Modifier and Type | Field and Description |
---|---|
static String |
ALL_PATTERN
Pattern that matches everything.
|
static String |
ARCDIRECTORY_NAME
The directory name of the heritrix directory with arcfiles.
|
static String |
CDX_MIME_PATTERN
Pattern that matches our our CDX mimetype.
|
static String |
CDX_MIME_TYPE
The mimetype for a list of CDX entries.
|
static int |
IO_BUFFER_SIZE
How big a buffer we use for read()/write() operations on InputStream/ OutputStream.
|
static long |
IO_CHUNK_SIZE
Read this much data when copying data from a file channel.
|
static Pattern |
IP_KEY_REGEXP
A full string matcher for an IP-address.
|
static String |
IP_REGEX_STRING
The pattern for an IP-address key.
|
static Pattern |
IPv6_KEY_REGEXP
A full string matcher for an IPv6-address.
|
static org.apache.lucene.util.Version |
LUCENE_VERSION
Lucene version used by this release of NetarchiveSuite.
|
static long |
ONE_DAY_IN_MILLIES
One day in milliseconds.
|
static long |
ONE_MIN_IN_MILLIES
One minute in milliseconds.
|
static String |
PROJECT_WEBSITE
The current website for the NetarchiveSuite project.
|
static String |
TRANSLATIONS_BUNDLE
Internationalisation resource bundle for common module.
|
static String |
WARCDIRECTORY_NAME
The directory name of the heritrix directory with warcfiles.
|
static String |
XML_EXTENSION
Extension of XML file names.
|
Modifier and Type | Method and Description |
---|---|
static String |
getHeritrix3VersionString() |
static String |
getHeritrixVersionString()
Get the Heritrix version presently in use.
|
static SimpleDateFormat |
getIsoDateFormatter()
Get a formatter that can read and write a date in ISO format including hours/minutes/seconds and timezone.
|
static String |
getVersionString(boolean isHtmlFormat)
Get a human-readable version string.
|
public static final String IP_REGEX_STRING
public static final Pattern IP_KEY_REGEXP
public static final Pattern IPv6_KEY_REGEXP
public static final String CDX_MIME_TYPE
public static final String XML_EXTENSION
public static final long IO_CHUNK_SIZE
public static final String ARCDIRECTORY_NAME
public static final String WARCDIRECTORY_NAME
public static final int IO_BUFFER_SIZE
public static final String TRANSLATIONS_BUNDLE
public static final long ONE_MIN_IN_MILLIES
public static final long ONE_DAY_IN_MILLIES
public static final String CDX_MIME_PATTERN
public static final String ALL_PATTERN
public static final org.apache.lucene.util.Version LUCENE_VERSION
public static final String PROJECT_WEBSITE
public static String getVersionString(boolean isHtmlFormat)
isHtmlFormat
- if true, return a html format for the human-readable version string.public static String getHeritrixVersionString()
public static SimpleDateFormat getIsoDateFormatter()
public static String getHeritrix3VersionString()
Copyright © 2005–2018 The Royal Danish Library, the National Library of France and the Austrian National Library.. All rights reserved.