|
||||||||||
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 | |
---|---|
protected |
AttributeMetadataHandler(java.lang.String uri,
java.lang.String localName,
Metadata metadata,
java.lang.String name)
|
Method Summary | |
---|---|
protected void |
addMetadata(java.lang.String value)
Adds the given metadata value. |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.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 |
---|
protected AttributeMetadataHandler(java.lang.String uri, java.lang.String localName, Metadata metadata, java.lang.String name)
Method Detail |
---|
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
protected void addMetadata(java.lang.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 |