|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.DefaultHandler org.apache.tika.parser.xml.AttributeMetadataHandler
public class AttributeMetadataHandler
SAX event handler that maps the contents of an XML attribute into a metadata field.
Constructor Summary | |
---|---|
AttributeMetadataHandler(String uri,
String localName,
Metadata metadata,
String name)
|
Method Summary | |
---|---|
protected void |
addMetadata(String value)
Adds the given metadata value. |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
|
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttributeMetadataHandler(String uri, String localName, Metadata metadata, String name)
Method Detail |
---|
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
protected void addMetadata(String value)
null
or empty. If the metadata entry already exists,
then the given value is appended to it with a comma as the separator.
value
- metadata value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |