public class ElementMetadataHandler
extends org.xml.sax.helpers.DefaultHandler
Constructor and Description |
---|
ElementMetadataHandler(java.lang.String uri,
java.lang.String localName,
Metadata metadata,
Property targetProperty)
Constructor for Property metadata keys.
|
ElementMetadataHandler(java.lang.String uri,
java.lang.String localName,
Metadata metadata,
Property targetProperty,
boolean allowDuplicateValues,
boolean allowEmptyValues)
Constructor for Property metadata keys which allows change of behavior
for duplicate and empty entry values.
|
ElementMetadataHandler(java.lang.String uri,
java.lang.String localName,
Metadata metadata,
java.lang.String name)
Constructor for string metadata keys.
|
ElementMetadataHandler(java.lang.String uri,
java.lang.String localName,
Metadata metadata,
java.lang.String name,
boolean allowDuplicateValues,
boolean allowEmptyValues)
Constructor for string metadata keys which allows change of behavior
for duplicate and empty entry values.
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String name) |
void |
ignorableWhitespace(char[] ch,
int start,
int length) |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String name,
org.xml.sax.Attributes attributes) |
public ElementMetadataHandler(java.lang.String uri, java.lang.String localName, Metadata metadata, java.lang.String name)
uri
- the uri of the namespace of the elementlocalName
- the local name of the elementmetadata
- the Tika metadata object to populatename
- the Tika metadata field keypublic ElementMetadataHandler(java.lang.String uri, java.lang.String localName, Metadata metadata, java.lang.String name, boolean allowDuplicateValues, boolean allowEmptyValues)
uri
- the uri of the namespace of the elementlocalName
- the local name of the elementmetadata
- the Tika metadata object to populatename
- the Tika metadata field keyallowDuplicateValues
- add duplicate values to the Tika metadataallowEmptyValues
- add empty values to the Tika metadatapublic ElementMetadataHandler(java.lang.String uri, java.lang.String localName, Metadata metadata, Property targetProperty)
uri
- the uri of the namespace of the elementlocalName
- the local name of the elementmetadata
- the Tika metadata object to populatetargetProperty
- the Tika metadata Property keypublic ElementMetadataHandler(java.lang.String uri, java.lang.String localName, Metadata metadata, Property targetProperty, boolean allowDuplicateValues, boolean allowEmptyValues)
uri
- the uri of the namespace of the elementlocalName
- the local name of the elementmetadata
- the Tika metadata object to populatetargetProperty
- the Tika metadata Property keyallowDuplicateValues
- add duplicate values to the Tika metadataallowEmptyValues
- add empty values to the Tika metadatapublic void startElement(java.lang.String uri, java.lang.String localName, java.lang.String name, org.xml.sax.Attributes attributes)
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String name)
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
public void characters(char[] ch, int start, int length)
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
public void ignorableWhitespace(char[] ch, int start, int length)
ignorableWhitespace
in interface org.xml.sax.ContentHandler
ignorableWhitespace
in class org.xml.sax.helpers.DefaultHandler
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"