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, warningprotected long m_realOffset
public XmlPositionCorrectionHandler()
public void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class DefaultHandlerSAXExceptionpublic long getRealOffset()
public void characters(char[] text,
int offset,
int len)
throws SAXException
characters in interface ContentHandlercharacters in class DefaultHandlerSAXExceptionCopyright © 2024 GATE. All rights reserved.