org.xml.sax.helpers

  • This page provides a list of helper classes for SAX (Simple API for XML) parsing in Java.

  • Several classes offer default implementations or adaptations for core SAX interfaces like Attributes, XMLReader, and Parser.

  • Some classes on this page, such as AttributeListImpl and ParserFactory, are deprecated and should be avoided in new code.

  • Developers can leverage these helper classes to simplify their SAX-based XML processing tasks.

  • Key functionalities include namespace support, SAX1/SAX2 adaptation, and default event handling.

Classes

AttributeListImpl This class is deprecated. This class implements a deprecated interface, AttributeList; that interface has been replaced by Attributes, which is implemented in the AttributesImpl helper class. 
AttributesImpl Default implementation of the Attributes interface. 
DefaultHandler Default base class for SAX2 event handlers. 
LocatorImpl Provide an optional convenience implementation of Locator. 
NamespaceSupport Encapsulate Namespace logic for use by applications using SAX, or internally by SAX drivers. 
ParserAdapter Adapt a SAX1 Parser as a SAX2 XMLReader. 
ParserFactory This class is deprecated. This class works with the deprecated Parser interface. 
XMLFilterImpl Base class for deriving an XML filter. 
XMLReaderAdapter Adapt a SAX2 XMLReader as a SAX1 Parser. 
XMLReaderFactory Factory for creating an XML reader.