Class XmlMetadataContentHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.tika.sax.ToTextContentHandler
org.apache.tika.sax.ToXMLContentHandler
ddf.catalog.transformer.common.tika.handler.XmlMetadataContentHandler
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
public class XmlMetadataContentHandler
extends org.apache.tika.sax.ToXMLContentHandler
-
Field Summary
Fields inherited from class org.apache.tika.sax.ToXMLContentHandler
inStartElement, namespaces -
Constructor Summary
ConstructorsConstructorDescriptionXmlMetadataContentHandler(String encoding, int writeLimit) Constructs a new Xml Metadata content handler using the spcified encoding -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) voidendElement(String uri, String localName, String name) voidignorableWhitespace(char[] ch, int start, int length) booleanbooleanokToWrite(int length) voidstartElement(String uri, String localName, String qName, Attributes atts) protected voidwrite(char ch) protected voidMethods inherited from class org.apache.tika.sax.ToXMLContentHandler
startDocument, startPrefixMappingMethods inherited from class org.apache.tika.sax.ToTextContentHandler
endDocument, toStringMethods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, error, fatalError, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
XmlMetadataContentHandler
Constructs a new Xml Metadata content handler using the spcified encoding- Parameters:
encoding- encoding to use
-
-
Method Details
-
characters
- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classorg.apache.tika.sax.ToXMLContentHandler- Throws:
SAXException
-
write
- Overrides:
writein classorg.apache.tika.sax.ToXMLContentHandler- Throws:
SAXException
-
write
- Overrides:
writein classorg.apache.tika.sax.ToXMLContentHandler- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespacein interfaceContentHandler- Overrides:
ignorableWhitespacein classorg.apache.tika.sax.ToTextContentHandler- Throws:
SAXException
-
startElement
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classorg.apache.tika.sax.ToXMLContentHandler- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classorg.apache.tika.sax.ToXMLContentHandler- Throws:
SAXException
-
okToWrite
public boolean okToWrite(int length) -
isWriteLimitReached
public boolean isWriteLimitReached()
-