Class LineNumberSAXBuilder


  • public class LineNumberSAXBuilder
    extends org.jdom.input.SAXBuilder
    This builder works in parallell with LineNumberElement to provide each element with information on its beginning and ending line number in the corresponding source. This only works for SAX parsers that supply that information, and since this is optional, there are no guarantees.

    Note that this builder always creates its own for each build, thereby cancelling any previous call to setFactory.

    All elements created are instances of LineNumberElement. No other construct currently receive line number information.

    Author:
    Per Norrman
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.jdom.input.SAXHandler createContentHandler()  
      • Methods inherited from class org.jdom.input.SAXBuilder

        build, build, build, build, build, build, build, build, configureContentHandler, configureParser, createParser, getDriverClass, getDTDHandler, getEntityResolver, getErrorHandler, getExpandEntities, getFactory, getIgnoringBoundaryWhitespace, getIgnoringElementContentWhitespace, getReuseParser, getValidation, getXMLFilter, setDTDHandler, setEntityResolver, setErrorHandler, setExpandEntities, setFactory, setFastReconfigure, setFeature, setIgnoringBoundaryWhitespace, setIgnoringElementContentWhitespace, setProperty, setReuseParser, setValidation, setXMLFilter
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LineNumberSAXBuilder

        public LineNumberSAXBuilder()
    • Method Detail

      • createContentHandler

        protected org.jdom.input.SAXHandler createContentHandler()
        Overrides:
        createContentHandler in class org.jdom.input.SAXBuilder