org.xml.sax
17 classes of the module java.xml.
Load them with:
using {
"org.xml.sax"
}
AttributeList#
interface · org.xml.sax.AttributeList
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getLength | getLength() | int getLength() |
getName | getName(i) | String getName(int i) |
getType | getType(name) | String getType(String name)String getType(int i) |
getValue | getValue(i) | String getValue(int i)String getValue(String name) |
DocumentHandler#
interface · org.xml.sax.DocumentHandler
Methods
| Method | Ring call | Java overloads |
|---|---|---|
characters | characters(ch,start,length) | void characters(char[] ch, int start, int length) |
endDocument | endDocument() | void endDocument() |
endElement | endElement(name) | void endElement(String name) |
ignorableWhitespace | ignorableWhitespace(ch,start,length) | void ignorableWhitespace(char[] ch, int start, int length) |
processingInstruction | processingInstruction(target,data) | void processingInstruction(String target, String data) |
setDocumentLocator | setDocumentLocator(locator) | void setDocumentLocator(Locator locator) |
startDocument | startDocument() | void startDocument() |
startElement | startElement(name,atts) | void startElement(String name, AttributeList atts) |
DTDHandler#
interface · org.xml.sax.DTDHandler
Methods
| Method | Ring call | Java overloads |
|---|---|---|
notationDecl | notationDecl(name,publicId,systemId) | void notationDecl(String name, String publicId, String systemId) |
unparsedEntityDecl | unparsedEntityDecl(name,publicId,systemId,notationName) | void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) |
EntityResolver#
interface · org.xml.sax.EntityResolver
Methods
| Method | Ring call | Java overloads |
|---|---|---|
resolveEntity | resolveEntity(publicId,systemId) | InputSource resolveEntity(String publicId, String systemId) |
ErrorHandler#
interface · org.xml.sax.ErrorHandler
Methods
| Method | Ring call | Java overloads |
|---|---|---|
error | error(exception) | void error(SAXParseException exception) |
fatalError | fatalError(exception) | void fatalError(SAXParseException exception) |
warning | warning(exception) | void warning(SAXParseException exception) |
HandlerBase#
class · extends Object · org.xml.sax.HandlerBase
Implements: EntityResolver, DTDHandler, DocumentHandler, ErrorHandler
Constructors
new HandlerBase() |
Ring: new HandlerBase(args) uses the constructor with the fewest parameters (at least one); new HandlerBase makes the object with the constructor without parameters; the others: (new HandlerBase).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
characters | characters(ch,start,length) | void characters(char[] ch, int start, int length) |
endDocument | endDocument() | void endDocument() |
endElement | endElement(name) | void endElement(String name) |
error | error(e) | void error(SAXParseException e) |
fatalError | fatalError(e) | void fatalError(SAXParseException e) |
ignorableWhitespace | ignorableWhitespace(ch,start,length) | void ignorableWhitespace(char[] ch, int start, int length) |
notationDecl | notationDecl(name,publicId,systemId) | void notationDecl(String name, String publicId, String systemId) |
processingInstruction | processingInstruction(target,data) | void processingInstruction(String target, String data) |
resolveEntity | resolveEntity(publicId,systemId) | InputSource resolveEntity(String publicId, String systemId) |
setDocumentLocator | setDocumentLocator(locator) | void setDocumentLocator(Locator locator) |
startDocument | startDocument() | void startDocument() |
startElement | startElement(name,attributes) | void startElement(String name, AttributeList attributes) |
unparsedEntityDecl | unparsedEntityDecl(name,publicId,systemId,notationName) | void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) |
warning | warning(e) | void warning(SAXParseException e) |
The methods and fields of Object are inherited.
InputSource#
class · extends Object · org.xml.sax.InputSource
Constructors
new InputSource() |
new InputSource(Reader characterStream) |
new InputSource(InputStream byteStream) |
new InputSource(String systemId) |
Ring: new InputSource(args) uses the constructor with the fewest parameters (at least one); new InputSource makes the object with the constructor without parameters; the others: (new InputSource).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getByteStream | getByteStream() | InputStream getByteStream() |
getCharacterStream | getCharacterStream() | Reader getCharacterStream() |
getEncoding | getEncoding() | String getEncoding() |
getPublicId | getPublicId() | String getPublicId() |
getSystemId | getSystemId() | String getSystemId() |
isEmpty | isEmpty() | boolean isEmpty() |
setByteStream | setByteStream(byteStream) | void setByteStream(InputStream byteStream) |
setCharacterStream | setCharacterStream(characterStream) | void setCharacterStream(Reader characterStream) |
setEncoding | setEncoding(encoding) | void setEncoding(String encoding) |
setPublicId | setPublicId(publicId) | void setPublicId(String publicId) |
setSystemId | setSystemId(systemId) | void setSystemId(String systemId) |
The methods and fields of Object are inherited.
Locator#
interface · org.xml.sax.Locator
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getColumnNumber | getColumnNumber() | int getColumnNumber() |
getLineNumber | getLineNumber() | int getLineNumber() |
getPublicId | getPublicId() | String getPublicId() |
getSystemId | getSystemId() | String getSystemId() |
Parser#
interface · org.xml.sax.Parser
Methods
| Method | Ring call | Java overloads |
|---|---|---|
parse | parse(systemId) | void parse(String systemId)void parse(InputSource source) |
setDocumentHandler | setDocumentHandler(handler) | void setDocumentHandler(DocumentHandler handler) |
setDTDHandler | setDTDHandler(handler) | void setDTDHandler(DTDHandler handler) |
setEntityResolver | setEntityResolver(resolver) | void setEntityResolver(EntityResolver resolver) |
setErrorHandler | setErrorHandler(handler) | void setErrorHandler(ErrorHandler handler) |
setLocale | setLocale(locale) | void setLocale(Locale locale) |
SaxAttributes#
interface · org.xml.sax.Attributes
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getIndex | getIndex(qName)getIndex([uri,localName])getIndex([ :uri = v, :localName = v ]) | int getIndex(String qName)int getIndex(String uri, String localName) |
getLength | getLength() | int getLength() |
getLocalName | getLocalName(index) | String getLocalName(int index) |
getQName | getQName(index) | String getQName(int index) |
getType | getType(qName)getType([uri,localName])getType([ :uri = v, :localName = v ]) | String getType(String qName)String getType(int index)String getType(String uri, String localName) |
getURI | getURI(index) | String getURI(int index) |
getValue | getValue(index)getValue([uri,localName])getValue([ :uri = v, :localName = v ]) | String getValue(int index)String getValue(String qName)String getValue(String uri, String localName) |
SaxContentHandler#
interface · org.xml.sax.ContentHandler
Methods
| Method | Ring call | Java overloads |
|---|---|---|
characters | characters(ch,start,length) | void characters(char[] ch, int start, int length) |
declaration | declaration(version,encoding,standalone) | void declaration(String version, String encoding, String standalone) |
endDocument | endDocument() | void endDocument() |
endElement | endElement(uri,localName,qName) | void endElement(String uri, String localName, String qName) |
endPrefixMapping | endPrefixMapping(prefix) | void endPrefixMapping(String prefix) |
ignorableWhitespace | ignorableWhitespace(ch,start,length) | void ignorableWhitespace(char[] ch, int start, int length) |
processingInstruction | processingInstruction(target,data) | void processingInstruction(String target, String data) |
setDocumentLocator | setDocumentLocator(locator) | void setDocumentLocator(Locator locator) |
skippedEntity | skippedEntity(name) | void skippedEntity(String name) |
startDocument | startDocument() | void startDocument() |
startElement | startElement(uri,localName,qName,atts) | void startElement(String uri, String localName, String qName, Attributes atts) |
startPrefixMapping | startPrefixMapping(prefix,uri) | void startPrefixMapping(String prefix, String uri) |
SAXException#
class · extends Exception · org.xml.sax.SAXException
Constructors
new SAXException() |
new SAXException(Exception e) |
new SAXException(String message) |
new SAXException(String message, Exception e) |
Ring: new SAXException(args) uses the constructor with the fewest parameters (at least one); new SAXException makes the object with the constructor without parameters; the others: (new SAXException).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getException | getException() | Exception getException() |
The methods and fields of Exception are inherited.
SAXNotRecognizedException#
class · extends SAXException · org.xml.sax.SAXNotRecognizedException
Constructors
new SAXNotRecognizedException() |
new SAXNotRecognizedException(String message) |
Ring: new SAXNotRecognizedException(args) uses the constructor with the fewest parameters (at least one); new SAXNotRecognizedException makes the object with the constructor without parameters; the others: (new SAXNotRecognizedException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of SAXException are inherited.
SAXNotSupportedException#
class · extends SAXException · org.xml.sax.SAXNotSupportedException
Constructors
new SAXNotSupportedException() |
new SAXNotSupportedException(String message) |
Ring: new SAXNotSupportedException(args) uses the constructor with the fewest parameters (at least one); new SAXNotSupportedException makes the object with the constructor without parameters; the others: (new SAXNotSupportedException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of SAXException are inherited.
SAXParseException#
class · extends SAXException · org.xml.sax.SAXParseException
Constructors
new SAXParseException(String message, Locator locator) |
new SAXParseException(String message, Locator locator, Exception e) |
new SAXParseException(String message, String publicId, String systemId, int lineNumber, int columnNumber) |
new SAXParseException(String message, String publicId, String systemId, int lineNumber, int columnNumber, Exception e) |
Ring: new SAXParseException(args) uses the constructor with the fewest parameters (at least one); new SAXParseException makes the object with the constructor without parameters; the others: (new SAXParseException).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getColumnNumber | getColumnNumber() | int getColumnNumber() |
getLineNumber | getLineNumber() | int getLineNumber() |
getPublicId | getPublicId() | String getPublicId() |
getSystemId | getSystemId() | String getSystemId() |
The methods and fields of SAXException are inherited.
SaxXMLReader#
interface · org.xml.sax.XMLReader
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getContentHandler | getContentHandler() | ContentHandler getContentHandler() |
getDTDHandler | getDTDHandler() | DTDHandler getDTDHandler() |
getEntityResolver | getEntityResolver() | EntityResolver getEntityResolver() |
getErrorHandler | getErrorHandler() | ErrorHandler getErrorHandler() |
getFeature | getFeature(name) | boolean getFeature(String name) |
getProperty | getProperty(name) | Object getProperty(String name) |
parse | parse(systemId) | void parse(String systemId)void parse(InputSource input) |
setContentHandler | setContentHandler(handler) | void setContentHandler(ContentHandler handler) |
setDTDHandler | setDTDHandler(handler) | void setDTDHandler(DTDHandler handler) |
setEntityResolver | setEntityResolver(resolver) | void setEntityResolver(EntityResolver resolver) |
setErrorHandler | setErrorHandler(handler) | void setErrorHandler(ErrorHandler handler) |
setFeature | setFeature(name,value) | void setFeature(String name, boolean value) |
setProperty | setProperty(name,value) | void setProperty(String name, Object value) |
XMLFilter#
interface · org.xml.sax.XMLFilter
Extends: SaxXMLReader
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getContentHandler | getContentHandler() | ContentHandler getContentHandler() |
getDTDHandler | getDTDHandler() | DTDHandler getDTDHandler() |
getEntityResolver | getEntityResolver() | EntityResolver getEntityResolver() |
getErrorHandler | getErrorHandler() | ErrorHandler getErrorHandler() |
getFeature | getFeature(name) | boolean getFeature(String name) |
getParent | getParent() | XMLReader getParent() |
getProperty | getProperty(name) | Object getProperty(String name) |
parse | parse(systemId) | void parse(String systemId)void parse(InputSource input) |
setContentHandler | setContentHandler(handler) | void setContentHandler(ContentHandler handler) |
setDTDHandler | setDTDHandler(handler) | void setDTDHandler(DTDHandler handler) |
setEntityResolver | setEntityResolver(resolver) | void setEntityResolver(EntityResolver resolver) |
setErrorHandler | setErrorHandler(handler) | void setErrorHandler(ErrorHandler handler) |
setFeature | setFeature(name,value) | void setFeature(String name, boolean value) |
setParent | setParent(parent) | void setParent(XMLReader parent) |
setProperty | setProperty(name,value) | void setProperty(String name, Object value) |