Package org.odftoolkit.odfdom.changes
Class ChangesFileSaxHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.odftoolkit.odfdom.pkg.OdfFileSaxHandler
-
- org.odftoolkit.odfdom.changes.ChangesFileSaxHandler
-
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
public class ChangesFileSaxHandler extends OdfFileSaxHandler
- Author:
- svante.schubertATgmail.com
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOMMENT_PREFIXstatic StringCONTEXT_DELIMITER-
Fields inherited from class org.odftoolkit.odfdom.pkg.OdfFileSaxHandler
mCurrentNode
-
-
Constructor Summary
Constructors Constructor Description ChangesFileSaxHandler(Node rootNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcacheOperation(boolean fillCacheOnly, String componentType, List<Integer> start, boolean absolutePosition, Map<String,Object> hardFormattingProperties, Object... componentProperties)voidcharacters(char[] ch, int startPosition, int length)voidendDocument()voidendElement(String uri, String localName, String qName)InputSourceresolveEntity(String publicId, String systemId)voidstartDocument()voidstartElement(String uri, String localName, String qName, Attributes attributes)-
Methods inherited from class org.odftoolkit.odfdom.pkg.OdfFileSaxHandler
flushTextNode, setContextNode, setSink
-
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
-
-
-
-
Field Detail
-
COMMENT_PREFIX
public static final String COMMENT_PREFIX
- See Also:
- Constant Field Values
-
CONTEXT_DELIMITER
public static final String CONTEXT_DELIMITER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ChangesFileSaxHandler
public ChangesFileSaxHandler(Node rootNode) throws SAXException
- Throws:
SAXException
-
-
Method Detail
-
startDocument
public void startDocument() throws SAXException- Specified by:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin classOdfFileSaxHandler- Throws:
SAXException
-
endDocument
public void endDocument() throws SAXException- Specified by:
endDocumentin interfaceContentHandler- Overrides:
endDocumentin classOdfFileSaxHandler- Throws:
SAXException
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classOdfFileSaxHandler- Throws:
SAXException
-
endElement
public void endElement(String uri, String localName, String qName) throws SAXException
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classOdfFileSaxHandler- Throws:
SAXException
-
characters
public void characters(char[] ch, int startPosition, int length)- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classOdfFileSaxHandler
-
resolveEntity
public InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException
- Specified by:
resolveEntityin interfaceEntityResolver- Overrides:
resolveEntityin classOdfFileSaxHandler- Throws:
IOExceptionSAXException
-
-