Java in a Nutshell, 5th Edition [Electronic resources]

نسخه متنی -صفحه : 1191/ 1144
نمايش فراداده

Package org.xml.sax.ext

Java 1.4

This package defines extensions to the basic SAX2 API. Neither SAX parsers nor SAX applications are required to support these extensions, but when they do, the interfaces defined here provide a standard way for the parser to provide additional information about an XML document to the application. DeclHandler defines methods for reporting the content of a DTD, and LexicalHandler defines methods for reporting the lexical structure of an XML document.

In Java 5.0 adopts "SAX2 Extensions 1.1" and adds three new interfaces to this package: Attributes2, EntityResolver2, and Locator2. Each extends a similarly named interface from the core org.xml.sax package.

Interfaces

public interface

Attributes2 extends org.xml.sax.Attributes; public interface

DeclHandler ; public interface

EntityResolver2 extends org.xml.sax.EntityResolver; public interface

LexicalHandler ; public interface

Locator2 extends org.xml.sax.Locator;

Classes

public class

Attributes2Impl extends org.xml.sax.helpers.AttributesImpl implements Attributes2; public class

DefaultHandler2 extends org.xml.sax.helpers.DefaultHandler implements DeclHandler, EntityResolver2, LexicalHandler; public class

Locator2Impl extends org.xml.sax.helpers.LocatorImpl implements Locator2;