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 String
COMMENT_PREFIX
static String
CONTEXT_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 void
cacheOperation(boolean fillCacheOnly, String componentType, List<Integer> start, boolean absolutePosition, Map<String,Object> hardFormattingProperties, Object... componentProperties)
void
characters(char[] ch, int startPosition, int length)
void
endDocument()
void
endElement(String uri, String localName, String qName)
InputSource
resolveEntity(String publicId, String systemId)
void
startDocument()
void
startElement(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 String COMMENT_PREFIX
-
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:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classOdfFileSaxHandler
- Throws:
SAXException
-
endDocument
public void endDocument() throws SAXException
- Specified by:
endDocument
in interfaceContentHandler
- Overrides:
endDocument
in classOdfFileSaxHandler
- Throws:
SAXException
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classOdfFileSaxHandler
- Throws:
SAXException
-
endElement
public void endElement(String uri, String localName, String qName) throws SAXException
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classOdfFileSaxHandler
- Throws:
SAXException
-
characters
public void characters(char[] ch, int startPosition, int length)
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classOdfFileSaxHandler
-
resolveEntity
public InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException
- Specified by:
resolveEntity
in interfaceEntityResolver
- Overrides:
resolveEntity
in classOdfFileSaxHandler
- Throws:
IOException
SAXException
-
-