Module java.xml
Package org.xml.sax

Interface Parser

All Known Implementing Classes:
XMLReaderAdapter

@Deprecated(since="1.5") public interface Parser
Deprecated.
This interface has been replaced by the SAX2 XMLReader interface, which includes Namespace support.
Basic interface for SAX (Simple API for XML) parsers.

This was the main event supplier interface for SAX1; it has been replaced in SAX2 by XMLReader, which includes Namespace support and sophisticated configurability and extensibility.

All SAX1 parsers must implement this basic interface: it allows applications to register handlers for different types of events and to initiate a parse from a URI, or a character stream.

All SAX1 parsers must also implement a zero-argument constructor (though other constructors are also allowed).

SAX1 parsers are reusable but not re-entrant: the application may reuse a parser object (possibly with a different input source) once the first parse has completed successfully, but it may not invoke the parse() methods recursively within a parse.

Since:
1.4, SAX 1.0
See Also: