Uses of Class
org.xml.sax.SAXException
| Package | Description |
|---|---|
| javax.xml.parsers |
Provides the classes for processing XML documents with a SAX (Simple API for XML)
parser or a DOM (Document Object Model) Document builder.
|
| javax.xml.validation |
Provides an API for validation of XML documents.
|
| org.xml.sax |
Provides the interfaces for the Simple API for XML (SAX).
|
| org.xml.sax.ext |
Provides interfaces to SAX2 facilities that
conformant SAX drivers won't necessarily support.
|
| org.xml.sax.helpers |
Provides helper classes, including
support for bootstrapping SAX-based applications.
|
-
Uses of SAXException in javax.xml.parsers
Methods in javax.xml.parsers that throw SAXException Modifier and Type Method Description abstract ParserSAXParser. getParser()Returns the SAX parser that is encapsulated by the implementation of this class.abstract XMLReaderSAXParser. getXMLReader()Returns theXMLReaderthat is encapsulated by the implementation of this class.abstract SAXParserSAXParserFactory. newSAXParser()Creates a new instance of a SAXParser using the currently configured factory parameters.DocumentDocumentBuilder. parse(File f)Parse the content of the given file as an XML document and return a new DOMDocumentobject.DocumentDocumentBuilder. parse(InputStream is)Parse the content of the givenInputStreamas an XML document and return a new DOMDocumentobject.DocumentDocumentBuilder. parse(InputStream is, String systemId)Parse the content of the givenInputStreamas an XML document and return a new DOMDocumentobject.DocumentDocumentBuilder. parse(String uri)Parse the content of the given URI as an XML document and return a new DOMDocumentobject.abstract DocumentDocumentBuilder. parse(InputSource is)Parse the content of the given input source as an XML document and return a new DOMDocumentobject.voidSAXParser. parse(File f, HandlerBase hb)Parse the content of the file specified as XML using the specifiedHandlerBase.voidSAXParser. parse(File f, DefaultHandler dh)Parse the content of the file specified as XML using the specifiedDefaultHandler.voidSAXParser. parse(InputStream is, HandlerBase hb)Parse the content of the givenInputStreaminstance as XML using the specifiedHandlerBase.voidSAXParser. parse(InputStream is, HandlerBase hb, String systemId)Parse the content of the givenInputStreaminstance as XML using the specifiedHandlerBase.voidSAXParser. parse(InputStream is, DefaultHandler dh)Parse the content of the givenInputStreaminstance as XML using the specifiedDefaultHandler.voidSAXParser. parse(InputStream is, DefaultHandler dh, String systemId)Parse the content of the givenInputStreaminstance as XML using the specifiedDefaultHandler.voidSAXParser. parse(String uri, HandlerBase hb)Parse the content described by the giving Uniform Resource Identifier (URI) as XML using the specifiedHandlerBase.voidSAXParser. parse(String uri, DefaultHandler dh)Parse the content described by the giving Uniform Resource Identifier (URI) as XML using the specifiedDefaultHandler.voidSAXParser. parse(InputSource is, HandlerBase hb)Parse the content givenInputSourceas XML using the specifiedHandlerBase.voidSAXParser. parse(InputSource is, DefaultHandler dh)Parse the content givenInputSourceas XML using the specifiedDefaultHandler. -
Uses of SAXException in javax.xml.validation
Methods in javax.xml.validation that throw SAXException Modifier and Type Method Description abstract SchemaSchemaFactory. newSchema()Creates a specialSchemaobject.SchemaSchemaFactory. newSchema(File schema)Parses the specifiedFileas a schema and returns it as aSchema.SchemaSchemaFactory. newSchema(URL schema)Parses the specifiedURLas a schema and returns it as aSchema.SchemaSchemaFactory. newSchema(Source schema)Parses the specified source as a schema and returns it as a schema.abstract SchemaSchemaFactory. newSchema(Source[] schemas)Parses the specified source(s) as a schema and returns it as a schema.voidValidator. validate(Source source)Validates the specified input.abstract voidValidator. validate(Source source, Result result)Validates the specified input and send the augmented validation result to the specified output. -
Uses of SAXException in org.xml.sax
Subclasses of SAXException in org.xml.sax Modifier and Type Class Description classSAXNotRecognizedExceptionException class for an unrecognized identifier.classSAXNotSupportedExceptionException class for an unsupported operation.classSAXParseExceptionEncapsulate an XML parse error or warning.Methods in org.xml.sax that throw SAXException Modifier and Type Method Description voidContentHandler. characters(char[] ch, int start, int length)Receive notification of character data.voidDocumentHandler. characters(char[] ch, int start, int length)Deprecated.Receive notification of character data.voidHandlerBase. characters(char[] ch, int start, int length)Deprecated.Receive notification of character data inside an element.default voidContentHandler. declaration(String version, String encoding, String standalone)Receives notification of the XML declaration.voidContentHandler. endDocument()Receive notification of the end of a document.voidDocumentHandler. endDocument()Deprecated.Receive notification of the end of a document.voidHandlerBase. endDocument()Deprecated.Receive notification of the end of the document.voidContentHandler. endElement(String uri, String localName, String qName)Receive notification of the end of an element.voidDocumentHandler. endElement(String name)Deprecated.Receive notification of the end of an element.voidHandlerBase. endElement(String name)Deprecated.Receive notification of the end of an element.voidContentHandler. endPrefixMapping(String prefix)End the scope of a prefix-URI mapping.voidErrorHandler. error(SAXParseException exception)Receive notification of a recoverable error.voidHandlerBase. error(SAXParseException e)Deprecated.Receive notification of a recoverable parser error.voidErrorHandler. fatalError(SAXParseException exception)Receive notification of a non-recoverable, fatal error.voidHandlerBase. fatalError(SAXParseException e)Deprecated.Report a fatal XML parsing error.voidContentHandler. ignorableWhitespace(char[] ch, int start, int length)Receive notification of ignorable whitespace in element content.voidDocumentHandler. ignorableWhitespace(char[] ch, int start, int length)Deprecated.Receive notification of ignorable whitespace in element content.voidHandlerBase. ignorableWhitespace(char[] ch, int start, int length)Deprecated.Receive notification of ignorable whitespace in element content.voidDTDHandler. notationDecl(String name, String publicId, String systemId)Receive notification of a notation declaration event.voidParser. parse(String systemId)Deprecated.Parse an XML document from a system identifier (URI).voidParser. parse(InputSource source)Deprecated.Parse an XML document.voidXMLReader. parse(String systemId)Parse an XML document from a system identifier (URI).voidXMLReader. parse(InputSource input)Parse an XML document.voidContentHandler. processingInstruction(String target, String data)Receive notification of a processing instruction.voidDocumentHandler. processingInstruction(String target, String data)Deprecated.Receive notification of a processing instruction.voidHandlerBase. processingInstruction(String target, String data)Deprecated.Receive notification of a processing instruction.InputSourceEntityResolver. resolveEntity(String publicId, String systemId)Allow the application to resolve external entities.InputSourceHandlerBase. resolveEntity(String publicId, String systemId)Deprecated.Resolve an external entity.voidParser. setLocale(Locale locale)Deprecated.Allow an application to request a locale for errors and warnings.voidContentHandler. skippedEntity(String name)Receive notification of a skipped entity.voidContentHandler. startDocument()Receive notification of the beginning of a document.voidDocumentHandler. startDocument()Deprecated.Receive notification of the beginning of a document.voidHandlerBase. startDocument()Deprecated.Receive notification of the beginning of the document.voidContentHandler. startElement(String uri, String localName, String qName, Attributes atts)Receive notification of the beginning of an element.voidDocumentHandler. startElement(String name, AttributeList atts)Deprecated.Receive notification of the beginning of an element.voidHandlerBase. startElement(String name, AttributeList attributes)Deprecated.Receive notification of the start of an element.voidContentHandler. startPrefixMapping(String prefix, String uri)Begin the scope of a prefix-URI Namespace mapping.voidDTDHandler. unparsedEntityDecl(String name, String publicId, String systemId, String notationName)Receive notification of an unparsed entity declaration event.voidErrorHandler. warning(SAXParseException exception)Receive notification of a warning.voidHandlerBase. warning(SAXParseException e)Deprecated.Receive notification of a parser warning. -
Uses of SAXException in org.xml.sax.ext
Methods in org.xml.sax.ext that throw SAXException Modifier and Type Method Description voidDeclHandler. attributeDecl(String eName, String aName, String type, String mode, String value)Report an attribute type declaration.voidLexicalHandler. comment(char[] ch, int start, int length)Report an XML comment anywhere in the document.voidDeclHandler. elementDecl(String name, String model)Report an element type declaration.voidLexicalHandler. endCDATA()Report the end of a CDATA section.voidLexicalHandler. endDTD()Report the end of DTD declarations.voidLexicalHandler. endEntity(String name)Report the end of an entity.voidDeclHandler. externalEntityDecl(String name, String publicId, String systemId)Report a parsed external entity declaration.InputSourceDefaultHandler2. getExternalSubset(String name, String baseURI)Tells the parser that if no external subset has been declared in the document text, none should be used.InputSourceEntityResolver2. getExternalSubset(String name, String baseURI)Allows applications to provide an external subset for documents that don't explicitly define one.voidDeclHandler. internalEntityDecl(String name, String value)Report an internal entity declaration.InputSourceDefaultHandler2. resolveEntity(String publicId, String systemId)InvokesEntityResolver2.resolveEntity()with null entity name and base URI.InputSourceDefaultHandler2. resolveEntity(String name, String publicId, String baseURI, String systemId)Tells the parser to resolve the systemId against the baseURI and read the entity text from that resulting absolute URI.InputSourceEntityResolver2. resolveEntity(String name, String publicId, String baseURI, String systemId)Allows applications to map references to external entities into input sources, or tell the parser it should use conventional URI resolution.voidLexicalHandler. startCDATA()Report the start of a CDATA section.voidLexicalHandler. startDTD(String name, String publicId, String systemId)Report the start of DTD declarations, if any.voidLexicalHandler. startEntity(String name)Report the beginning of some internal and external XML entities. -
Uses of SAXException in org.xml.sax.helpers
Methods in org.xml.sax.helpers that throw SAXException Modifier and Type Method Description voidDefaultHandler. characters(char[] ch, int start, int length)Receive notification of character data inside an element.voidParserAdapter. characters(char[] ch, int start, int length)Adapter implementation method; do not call.voidXMLFilterImpl. characters(char[] ch, int start, int length)Filter a character data event.voidXMLReaderAdapter. characters(char[] ch, int start, int length)Adapt a SAX2 characters event.static XMLReaderXMLReaderFactory. createXMLReader()Deprecated.Obtains a new instance of aXMLReader.static XMLReaderXMLReaderFactory. createXMLReader(String className)Deprecated.Attempt to create an XML reader from a class name.voidDefaultHandler. endDocument()Receive notification of the end of the document.voidParserAdapter. endDocument()Adapter implementation method; do not call.voidXMLFilterImpl. endDocument()Filter an end document event.voidXMLReaderAdapter. endDocument()End document event.voidDefaultHandler. endElement(String uri, String localName, String qName)Receive notification of the end of an element.voidParserAdapter. endElement(String qName)Adapter implementation method; do not call.voidXMLFilterImpl. endElement(String uri, String localName, String qName)Filter an end element event.voidXMLReaderAdapter. endElement(String uri, String localName, String qName)Adapt a SAX2 end element event.voidDefaultHandler. endPrefixMapping(String prefix)Receive notification of the end of a Namespace mapping.voidXMLFilterImpl. endPrefixMapping(String prefix)Filter an end Namespace prefix mapping event.voidDefaultHandler. error(SAXParseException e)Receive notification of a recoverable parser error.voidXMLFilterImpl. error(SAXParseException e)Filter an error event.voidDefaultHandler. fatalError(SAXParseException e)Report a fatal XML parsing error.voidXMLFilterImpl. fatalError(SAXParseException e)Filter a fatal error event.voidDefaultHandler. ignorableWhitespace(char[] ch, int start, int length)Receive notification of ignorable whitespace in element content.voidParserAdapter. ignorableWhitespace(char[] ch, int start, int length)Adapter implementation method; do not call.voidXMLFilterImpl. ignorableWhitespace(char[] ch, int start, int length)Filter an ignorable whitespace event.voidXMLReaderAdapter. ignorableWhitespace(char[] ch, int start, int length)Adapt a SAX2 ignorable whitespace event.voidDefaultHandler. notationDecl(String name, String publicId, String systemId)Receive notification of a notation declaration.voidXMLFilterImpl. notationDecl(String name, String publicId, String systemId)Filter a notation declaration event.voidParserAdapter. parse(String systemId)Parse an XML document.voidParserAdapter. parse(InputSource input)Parse an XML document.voidXMLFilterImpl. parse(String systemId)Parse a document.voidXMLFilterImpl. parse(InputSource input)Parse a document.voidXMLReaderAdapter. parse(String systemId)Parse the document.voidXMLReaderAdapter. parse(InputSource input)Parse the document.voidDefaultHandler. processingInstruction(String target, String data)Receive notification of a processing instruction.voidParserAdapter. processingInstruction(String target, String data)Adapter implementation method; do not call.voidXMLFilterImpl. processingInstruction(String target, String data)Filter a processing instruction event.voidXMLReaderAdapter. processingInstruction(String target, String data)Adapt a SAX2 processing instruction event.InputSourceDefaultHandler. resolveEntity(String publicId, String systemId)Resolve an external entity.InputSourceXMLFilterImpl. resolveEntity(String publicId, String systemId)Filter an external entity resolution.voidXMLReaderAdapter. setLocale(Locale locale)Set the locale for error reporting.voidDefaultHandler. skippedEntity(String name)Receive notification of a skipped entity.voidXMLFilterImpl. skippedEntity(String name)Filter a skipped entity event.voidXMLReaderAdapter. skippedEntity(String name)Adapt a SAX2 skipped entity event.voidDefaultHandler. startDocument()Receive notification of the beginning of the document.voidParserAdapter. startDocument()Adapter implementation method; do not call.voidXMLFilterImpl. startDocument()Filter a start document event.voidXMLReaderAdapter. startDocument()Start document event.voidDefaultHandler. startElement(String uri, String localName, String qName, Attributes attributes)Receive notification of the start of an element.voidParserAdapter. startElement(String qName, AttributeList qAtts)Adapter implementation method; do not call.voidXMLFilterImpl. startElement(String uri, String localName, String qName, Attributes atts)Filter a start element event.voidXMLReaderAdapter. startElement(String uri, String localName, String qName, Attributes atts)Adapt a SAX2 start element event.voidDefaultHandler. startPrefixMapping(String prefix, String uri)Receive notification of the start of a Namespace mapping.voidXMLFilterImpl. startPrefixMapping(String prefix, String uri)Filter a start Namespace prefix mapping event.voidDefaultHandler. unparsedEntityDecl(String name, String publicId, String systemId, String notationName)Receive notification of an unparsed entity declaration.voidXMLFilterImpl. unparsedEntityDecl(String name, String publicId, String systemId, String notationName)Filter an unparsed entity declaration event.voidDefaultHandler. warning(SAXParseException e)Receive notification of a parser warning.voidXMLFilterImpl. warning(SAXParseException e)Filter a warning event.Constructors in org.xml.sax.helpers that throw SAXException Constructor Description ParserAdapter()Construct a new parser adapter.XMLReaderAdapter()Create a new adapter.