|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.trantor.wap.SaxWrapper
An implementation of the org.xml.parser interface that can be wrapped around a WbxmlParser or WmlParser.
Constructor Summary | |
SaxWrapper(WbxmlParser wrapped)
The wrapper needs a simple WbxmlParser (or WmlParser) to build on. |
Method Summary | |
void |
parse(org.xml.sax.InputSource is)
Parse an XML document by invoking the parse method of the wrapped WbxmlParser. |
void |
parse(java.lang.String systemId)
Shortcut for parse(new InputSource(systemId)); |
void |
setDocumentHandler(org.xml.sax.DocumentHandler h)
passes the DocumentHandler to the wrapped WbxmlParser given in the constructor |
void |
setDTDHandler(org.xml.sax.DTDHandler ignored)
This method is included for compatibility and does nothing since the corresponding functionality is not supported by WBXML |
void |
setEntityResolver(org.xml.sax.EntityResolver ignored)
This method is included for compatibility and does nothing since the corresponding functionality is not supported by WBXML |
void |
setErrorHandler(org.xml.sax.ErrorHandler ignored)
This method is included for compatibility and does nothing since the corresponding functionality is not supported by WBXML |
void |
setLocale(java.util.Locale ignored)
This method is included for compatibility and does nothing since the corresponding functionality is not supported by WBXML |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public SaxWrapper(WbxmlParser wrapped)
Method Detail |
public void parse(org.xml.sax.InputSource is) throws java.io.IOException, org.xml.sax.SAXException
source
- The input source for the top-level of the
XML document.InputSource
,
Parser.parse(java.lang.String)
,
Parser.setEntityResolver(org.xml.sax.EntityResolver)
,
Parser.setDTDHandler(org.xml.sax.DTDHandler)
,
Parser.setDocumentHandler(org.xml.sax.DocumentHandler)
,
Parser.setErrorHandler(org.xml.sax.ErrorHandler)
public void parse(java.lang.String systemId) throws java.io.IOException, org.xml.sax.SAXException
systemId
- The system identifier (URI).Parser.parse(org.xml.sax.InputSource)
public void setDocumentHandler(org.xml.sax.DocumentHandler h)
handler
- The document handler.DocumentHandler
,
HandlerBase
public void setDTDHandler(org.xml.sax.DTDHandler ignored)
handler
- The DTD handler.DTDHandler
,
HandlerBase
public void setEntityResolver(org.xml.sax.EntityResolver ignored)
resolver
- The object for resolving entities.EntityResolver
,
HandlerBase
public void setErrorHandler(org.xml.sax.ErrorHandler ignored)
handler
- The error handler.ErrorHandler
,
SAXException
,
HandlerBase
public void setLocale(java.util.Locale ignored)
locale
- A Java Locale object.SAXException
,
SAXParseException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |