|
||||||||||
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.MetadataHandler
AttributeMetadataHandler
and
ElementMetadataHandler
classes instead
public class MetadataHandler
This adds Metadata entries with a specified name for the textual content of a node (if present), and all attribute values passed through the matcher (but not their names).
Constructor Summary | |
---|---|
MetadataHandler(Metadata metadata,
Property property)
Deprecated. |
|
MetadataHandler(Metadata metadata,
String name)
Deprecated. |
Method Summary | |
---|---|
void |
addMetadata(String value)
Deprecated. |
void |
characters(char[] ch,
int start,
int length)
Deprecated. |
void |
endElement(String uri,
String localName,
String name)
Deprecated. |
void |
startElement(String uri,
String localName,
String name,
Attributes attributes)
Deprecated. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
endDocument, 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 MetadataHandler(Metadata metadata, String name)
public MetadataHandler(Metadata metadata, Property property)
Method Detail |
---|
public void addMetadata(String value)
public void endElement(String uri, String localName, String name)
endElement
in interface ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
public void startElement(String uri, String localName, String name, Attributes attributes)
startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
public void characters(char[] ch, int start, int length)
characters
in interface ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |