All Packages Class Hierarchy This Package Previous Next Index
Class com.jclark.xml.sax.Driver
java.lang.Object
|
+----com.jclark.xml.parse.base.ApplicationImpl
|
+----com.jclark.xml.sax.Driver
- public class Driver
- extends ApplicationImpl
- implements Parser, EntityManager, AttributeList, Locator
An implementation of SAX 1.0 on top of the com.jclark.xml.parse package.
Note that:
- the
Locator will provide information only for
startElement and processingInstruction
events;
- the line and column number returned by
Locator
will correspond to the first character of the document event
not the character following the document event as specified by SAX;
- neither a
Locator nor a SAXParseException
will provide information about an entity's public identifier;
- the
Locator object will be an instance of
com.jclark.xml.sax.Locator which extends
org.xml.sax.Locator;
- the only kind of error that is reported is a fatal error.
- See Also:
- Locator
-
Driver()
-
-
characterData(CharacterDataEvent)
-
-
endDocument()
-
-
endElement(EndElementEvent)
-
-
endProlog(EndPrologEvent)
-
-
getByteIndex()
-
-
getColumnNumber()
-
-
getLength()
-
-
getLineNumber()
-
-
getName(int)
-
-
getPublicId()
-
-
getSystemId()
-
-
getType(int)
-
-
getType(String)
-
-
getURL()
-
-
getValue(int)
-
-
getValue(String)
-
-
open(String, URL, String)
-
-
parse(InputSource)
-
-
parse(String)
-
-
processingInstruction(ProcessingInstructionEvent)
-
-
setDocumentHandler(DocumentHandler)
-
-
setDTDHandler(DTDHandler)
-
-
setEntityResolver(EntityResolver)
-
-
setErrorHandler(ErrorHandler)
-
-
setLocale(Locale)
-
-
startDocument()
-
-
startElement(StartElementEvent)
-
Driver
public Driver()
setEntityResolver
public void setEntityResolver(EntityResolver resolver)
setDocumentHandler
public void setDocumentHandler(DocumentHandler handler)
setDTDHandler
public void setDTDHandler(DTDHandler handler)
setErrorHandler
public void setErrorHandler(ErrorHandler handler)
setLocale
public void setLocale(Locale locale)
parse
public void parse(String systemId) throws SAXException, IOException
parse
public void parse(InputSource in) throws SAXException, IOException
startDocument
public void startDocument() throws SAXException
- Overrides:
- startDocument in class ApplicationImpl
startElement
public void startElement(StartElementEvent event) throws SAXException
- Overrides:
- startElement in class ApplicationImpl
characterData
public void characterData(CharacterDataEvent event)
- Overrides:
- characterData in class ApplicationImpl
endElement
public void endElement(EndElementEvent event) throws SAXException
- Overrides:
- endElement in class ApplicationImpl
processingInstruction
public void processingInstruction(ProcessingInstructionEvent event) throws SAXException
- Overrides:
- processingInstruction in class ApplicationImpl
endProlog
public void endProlog(EndPrologEvent event) throws SAXException
- Overrides:
- endProlog in class ApplicationImpl
endDocument
public void endDocument() throws SAXException
- Overrides:
- endDocument in class ApplicationImpl
open
public OpenEntity open(String systemId,
URL baseURL,
String publicId) throws IOException
getLength
public int getLength()
getName
public String getName(int i)
getValue
public String getValue(int i)
getValue
public String getValue(String name)
getType
public String getType(int i)
getType
public String getType(String name)
getSystemId
public String getSystemId()
getURL
public URL getURL()
getPublicId
public String getPublicId()
getLineNumber
public int getLineNumber()
getColumnNumber
public int getColumnNumber()
getByteIndex
public long getByteIndex()
All Packages Class Hierarchy This Package Previous Next Index