| Home >> All |
| | sax.helpers.* (2) |
sax: Javadoc index of package sax.
Package Samples:
sax.helpers
Classes:
XMLWriter: Filter to write an XML document from a SAX event stream. Code and comments adapted from XMLWriter-0.2, written by David Megginson and released into the public domain, without warranty. This class can be used by itself or as part of a SAX event stream: it takes as input a series of SAX2 ContentHandler events and uses the information in those events to write an XML document. Since this class is a filter, it can also pass the events on down a filter chain for further processing (you can use the XMLWriter to take a snapshot of the current state at any point in a filter chain), and it can be used directly ...
DataFormatFilter: Filter for data- or field-oriented XML. Code and comments adapted from DataWriter-0.2, written by David Megginson and released into the public domain, without warranty. This filter adds indentation and newlines to field-oriented XML without mixed content. All added indentation and newlines will be passed on down the filter chain. In general, all whitespace in an XML document is potentially significant. There is, however, a large class of XML documents where information is strictly fielded: each element contains either character data or other elements, but not both. For this special case, it is ...
XMLFilterBase: Adds convenience methods and lexical event filtering to base SAX2 Filter implementation. Code and comments adapted from XMLWriter-0.2, written by David Megginson and released into the public domain, without warranty. The convenience methods are provided so that clients do not have to create empty attribute lists or provide empty strings as parameters; for example, the method invocation w.startElement("foo"); is equivalent to the regular SAX2 ContentHandler method w.startElement("", "foo", "", new AttributesImpl()); Except that it is more efficient because it does not allocate a new empty attribute ...
Counter: A sample SAX2 counter. This sample program illustrates how to register a SAX2 ContentHandler and receive the callbacks in order to print information about the document. The output of this program shows the time and count of elements, attributes, ignorable whitespaces, and characters appearing in the document. This class is useful as a "poor-man's" performance tester to compare the speed and accuracy of various SAX parsers. However, it is important to note that the first parse time of a parser will include both VM class load time and parser initialization that would not be present in subsequent ...
DataUnformatFilter: Filter for removing formatting from data- or field-oriented XML. Code and comments adapted from DataWriter-0.2, written by David Megginson and released into the public domain, without warranty. This filter removes leading and trailing whitespace from field-oriented XML without mixed content. Note that this class will likely not yield appropriate results for document-oriented XML like XHTML pages, which mix character data and elements together.
DocumentTracer: Provides a complete trace of SAX2 events for files parsed. This is useful for making sure that a SAX parser implementation faithfully communicates all information in the document to the SAX handlers.
SAX2Count: A sample SAX2 counter. This sample program illustrates how to register a SAX2 ContentHandler and receive the callbacks in order to print information about the document.
SAXCount: A sample SAX counter. This sample program illustrates how to register a SAX DocumentHandler and receive the callbacks in order to print information about the document.
SAX2Writer: A sample SAX2 writer. This sample program illustrates how to register a SAX2 ContentHandler and receive the callbacks in order to print a document that is parsed.
Writer: A sample SAX2 writer. This sample program illustrates how to register a SAX2 ContentHandler and receive the callbacks in order to print a document that is parsed.
SAXWriter: A sample SAX writer. This sample program illustrates how to register a SAX DocumentHandler and receive the callbacks in order to print a document that is parsed.
AttributeListImpl: An AttributeList implementation that can perform more operations than the attribute list helper supplied with the standard SAX distribution.
AttributesImpl: An Attributes implementation that can perform more operations than the attribute list helper supplied with the standard SAX2 distribution.
XMLReaderBase: Base class for implementing an XML reader. Adapted from David Megginson's XMLFilterImpl and XMLFilterBase.
DocumentReader: An XMLReader wrapper for JDOM documents.
FilterTest: Tests SAXBuilder's XMLFilter feature
ReaderTest: Tests DocumentReader
| Home | Contact Us | Privacy Policy | Terms of Service |