public class LineNumberFilter extends XMLFilterImpl
| Constructor and Description |
|---|
LineNumberFilter(XMLReader xmlReader) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyLN(DOMResult result)
Apply line numbers stored by a parse using this object on the xml elements.
|
Locator |
getDocumentLocator()
Return the locator on the current position.
|
void |
setDocumentLocator(Locator locator) |
void |
startDocument() |
void |
startElement(String uri,
String localName,
String qName,
Attributes atts) |
characters, endDocument, endElement, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startPrefixMapping, unparsedEntityDecl, warningpublic LineNumberFilter(XMLReader xmlReader)
public void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class XMLFilterImplSAXExceptionpublic void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
startElement in interface ContentHandlerstartElement in class XMLFilterImplSAXExceptionpublic void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlersetDocumentLocator in class XMLFilterImplpublic Locator getDocumentLocator()
public void applyLN(DOMResult result)
result - The result of the parse.Copyright © 2001–2025. All rights reserved.