public class XmlPositionCorrectionHandler extends DefaultHandler
Modifier and Type | Field and Description |
---|---|
protected long |
m_realOffset
Variables for correction of 16K parser limit for offset
|
Constructor and Description |
---|
XmlPositionCorrectionHandler()
Constructor for initialization of variables
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] text,
int offset,
int len)
Here is the correction of the Xerces parser bug.
|
long |
getRealOffset()
Return corrected offset for last characters() call
|
void |
startDocument()
Initialization of variables on start of document parsing
|
endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startElement, startPrefixMapping, unparsedEntityDecl, warning
protected long m_realOffset
public XmlPositionCorrectionHandler()
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class DefaultHandler
SAXException
public long getRealOffset()
public void characters(char[] text, int offset, int len) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
SAXException
Copyright © 2024 GATE. All rights reserved.