public static enum PropertyBasedDocumentFactory.MetadataKeys extends Enum<PropertyBasedDocumentFactory.MetadataKeys>
DocumentFactory.getDocument(java.io.InputStream,it.unimi.dsi.fastutil.objects.Reference2ObjectMap).
The keys in this class are general-purpose keys that are meaningful for most factories.
Specific factory implementations might choose to interpret more keys, but then it is
up to the DocumentSequence that uses the factory to
provide data for those keys.
Note that the metadata map is a reference map. We cannot use
an EnumMap because we do not know in advance the enum(s) whose items will be put
in the map.
| Enum Constant and Description |
|---|
ENCODING
The tag for charset encoding metadata (a string normalised through
Charset.forName(java.lang.String)). |
LOCALE
The tag for locale metadata (a
Locale). |
MIMETYPE
The tag for MIME type metadata (a string).
|
TITLE
The tag for a document title (a character sequence).
|
URI
The tag for a document uri (a character sequence).
|
WORDREADER
The tag for the optional name of a word reader class.
|
| Modifier and Type | Method and Description |
|---|---|
static PropertyBasedDocumentFactory.MetadataKeys |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PropertyBasedDocumentFactory.MetadataKeys[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PropertyBasedDocumentFactory.MetadataKeys TITLE
public static final PropertyBasedDocumentFactory.MetadataKeys URI
public static final PropertyBasedDocumentFactory.MetadataKeys MIMETYPE
public static final PropertyBasedDocumentFactory.MetadataKeys ENCODING
Charset.forName(java.lang.String)).public static final PropertyBasedDocumentFactory.MetadataKeys WORDREADER
public static final PropertyBasedDocumentFactory.MetadataKeys LOCALE
Locale).public static PropertyBasedDocumentFactory.MetadataKeys[] values()
for (PropertyBasedDocumentFactory.MetadataKeys c : PropertyBasedDocumentFactory.MetadataKeys.values()) System.out.println(c);
public static PropertyBasedDocumentFactory.MetadataKeys valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is null