|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.xml.sax.helpers.XMLFilterImpl
| Constructor Summary | |
XMLFilterImpl()
|
|
XMLFilterImpl(XMLReader)
|
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XMLFilterImpl()
public XMLFilterImpl(XMLReader)
| Method Detail |
public void setParent(XMLReader)
setParent in interface XMLFilterpublic XMLReader getParent()
getParent in interface XMLFilter
public void setFeature(String,
boolean)
throws SAXNotRecognizedException,
SAXNotSupportedException
setFeature in interface XMLReaderSAXNotRecognizedException
SAXNotSupportedException
public boolean getFeature(String)
throws SAXNotRecognizedException,
SAXNotSupportedException
getFeature in interface XMLReaderSAXNotRecognizedException
SAXNotSupportedException
public void setProperty(String,
Object)
throws SAXNotRecognizedException,
SAXNotSupportedException
setProperty in interface XMLReaderSAXNotRecognizedException
SAXNotSupportedException
public Object getProperty(String)
throws SAXNotRecognizedException,
SAXNotSupportedException
getProperty in interface XMLReaderSAXNotRecognizedException
SAXNotSupportedExceptionpublic void setEntityResolver(EntityResolver)
setEntityResolver in interface XMLReaderpublic EntityResolver getEntityResolver()
getEntityResolver in interface XMLReaderpublic void setDTDHandler(DTDHandler)
setDTDHandler in interface XMLReaderpublic DTDHandler getDTDHandler()
getDTDHandler in interface XMLReaderpublic void setContentHandler(ContentHandler)
setContentHandler in interface XMLReaderpublic ContentHandler getContentHandler()
getContentHandler in interface XMLReaderpublic void setErrorHandler(ErrorHandler)
setErrorHandler in interface XMLReaderpublic ErrorHandler getErrorHandler()
getErrorHandler in interface XMLReader
public void parse(InputSource)
throws SAXException,
IOException
parse in interface XMLReaderSAXException
IOException
public void parse(String)
throws SAXException,
IOException
parse in interface XMLReaderSAXException
IOException
public InputSource resolveEntity(String,
String)
throws SAXException,
IOException
EntityResolverThe Parser will call this method before opening any external entity except the top-level document entity (including the external DTD subset, external entities referenced within the DTD, and external entities referenced within the document element): the application may request that the parser resolve the entity itself, that it use an alternative URI, or that it use an entirely different input source.
Application writers can use this method to redirect external system identifiers to secure and/or local URIs, to look up public identifiers in a catalogue, or to read an entity from a database or other input source (including, for example, a dialog box).
If the system identifier is a URL, the SAX parser must resolve it fully before reporting it to the application.
resolveEntity in interface EntityResolver - The public identifier of the external entity
being referenced, or null if none was supplied. - The system identifier of the external entity
being referenced.
SAXException - Any SAX exception, possibly
wrapping another exception.
IOException - A Java-specific IO exception,
possibly the result of creating a new InputStream
or Reader for the InputSource.InputSource
public void notationDecl(String,
String,
String)
throws SAXException
DTDHandlerIt is up to the application to record the notation for later reference, if necessary.
If a system identifier is present, and it is a URL, the SAX parser must resolve it fully before passing it to the application.
notationDecl in interface DTDHandler - The notation name. - The notation's public identifier, or null if
none was given. - The notation's system identifier, or null if
none was given.
SAXException - Any SAX exception, possibly
wrapping another exception.DTDHandler.unparsedEntityDecl(java.lang.String, java.lang.String, java.lang.String, java.lang.String),
AttributeList
public void unparsedEntityDecl(String,
String,
String,
String)
throws SAXException
DTDHandlerNote that the notation name corresponds to a notation reported by the notationDecl() event. It is up to the application to record the entity for later reference, if necessary.
If the system identifier is a URL, the parser must resolve it fully before passing it to the application.
unparsedEntityDecl in interface DTDHandler - The unparsed entity's name. - The entity's public identifier, or null if none
was given. - The entity's system identifier (it must always
have one).
SAXException - Any SAX exception, possibly
wrapping another exception.DTDHandler.notationDecl(java.lang.String, java.lang.String, java.lang.String),
AttributeListpublic void setDocumentLocator(Locator)
setDocumentLocator in interface ContentHandler
public void startDocument()
throws SAXException
startDocument in interface ContentHandlerSAXException
public void endDocument()
throws SAXException
endDocument in interface ContentHandlerSAXException
public void startPrefixMapping(String,
String)
throws SAXException
startPrefixMapping in interface ContentHandlerSAXException
public void endPrefixMapping(String)
throws SAXException
endPrefixMapping in interface ContentHandlerSAXException
public void startElement(String,
String,
String,
Attributes)
throws SAXException
startElement in interface ContentHandlerSAXException
public void endElement(String,
String,
String)
throws SAXException
endElement in interface ContentHandlerSAXException
public void characters(char[],
int,
int)
throws SAXException
characters in interface ContentHandlerSAXException
public void ignorableWhitespace(char[],
int,
int)
throws SAXException
ignorableWhitespace in interface ContentHandlerSAXException
public void processingInstruction(String,
String)
throws SAXException
processingInstruction in interface ContentHandlerSAXException
public void skippedEntity(String)
throws SAXException
skippedEntity in interface ContentHandlerSAXException
public void warning(SAXParseException)
throws SAXException
ErrorHandlerSAX parsers will use this method to report conditions that are not errors or fatal errors as defined by the XML 1.0 recommendation. The default behaviour is to take no action.
The SAX parser must continue to provide normal parsing events after invoking this method: it should still be possible for the application to process the document through to the end.
warning in interface ErrorHandler - The warning information encapsulated in a
SAX parse exception.
SAXException - Any SAX exception, possibly
wrapping another exception.SAXParseException
public void error(SAXParseException)
throws SAXException
ErrorHandlerThis corresponds to the definition of "error" in section 1.2 of the W3C XML 1.0 Recommendation. For example, a validating parser would use this callback to report the violation of a validity constraint. The default behaviour is to take no action.
The SAX parser must continue to provide normal parsing events after invoking this method: it should still be possible for the application to process the document through to the end. If the application cannot do so, then the parser should report a fatal error even if the XML 1.0 recommendation does not require it to do so.
error in interface ErrorHandler - The error information encapsulated in a
SAX parse exception.
SAXException - Any SAX exception, possibly
wrapping another exception.SAXParseException
public void fatalError(SAXParseException)
throws SAXException
ErrorHandlerThis corresponds to the definition of "fatal error" in section 1.2 of the W3C XML 1.0 Recommendation. For example, a parser would use this callback to report the violation of a well-formedness constraint.
The application must assume that the document is unusable after the parser has invoked this method, and should continue (if at all) only for the sake of collecting addition error messages: in fact, SAX parsers are free to stop reporting any other events once this method has been invoked.
fatalError in interface ErrorHandler - The error information encapsulated in a
SAX parse exception.
SAXException - Any SAX exception, possibly
wrapping another exception.SAXParseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||