| java.lang.Object org.xml.sax.helpers.DefaultHandler groovy.util.XmlSlurper
Method Summary | |
public void | characters(char[] ch, int start, int length) | public void | endDocument() | public void | endElement(String namespaceURI, String localName, String qName) | public DTDHandler | getDTDHandler() | public GPathResult | getDocument() | public EntityResolver | getEntityResolver() | public ErrorHandler | getErrorHandler() | public boolean | getFeature(String uri) | public Object | getProperty(String uri) | public GPathResult | parse(InputSource input) | public GPathResult | parse(File file) | public GPathResult | parse(InputStream input) Parse the content of the specified input stream into an GPathResult Object. | public GPathResult | parse(Reader in) Parse the content of the specified reader into a GPathResult Object. | public GPathResult | parse(String uri) | public GPathResult | parseText(String text) | public void | setDTDHandler(DTDHandler dtdHandler) | public void | setEntityBaseUrl(URL base) | public void | setEntityResolver(EntityResolver entityResolver) | public void | setErrorHandler(ErrorHandler errorHandler) | public void | setFeature(String uri, boolean value) | public void | setKeepWhitespace(boolean keepWhitespace) | public void | setProperty(String uri, Object value) | public void | startDocument() | public void | startElement(String namespaceURI, String localName, String qName, Attributes atts) | public void | startPrefixMapping(String tag, String uri) |
characters | public void characters(char[] ch, int start, int length) throws SAXException(Code) | | |
getDocument | public GPathResult getDocument()(Code) | | The GPathResult instance created by consuming a stream of SAX eventsNote if one of the parse methods has been called then this returns nullNote if this is called more than once all calls after the first will return null |
parse | public GPathResult parse(Reader in) throws IOException, SAXException(Code) | | Parse the content of the specified reader into a GPathResult Object.
Note that using this method will not provide the parser with any URI
for which to find DTDs etc
Parameters: in - An object which supports GPath expressions throws: IOException - throws: SAXException - |
setEntityBaseUrl | public void setEntityBaseUrl(URL base)(Code) | | Resolves entities against using the suppied URL as the base for relative URLs
Parameters: base - The URL used to resolve relative URLs |
setKeepWhitespace | public void setKeepWhitespace(boolean keepWhitespace)(Code) | | Parameters: keepWhitespace - If true then whitespace before elements is kept.The deafult is to discard the whitespace. |
Methods inherited from org.xml.sax.helpers.DefaultHandler | public void characters(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void endDocument() throws SAXException(Code)(Java Doc) public void endElement(String uri, String localName, String qName) throws SAXException(Code)(Java Doc) public void endPrefixMapping(String prefix) throws SAXException(Code)(Java Doc) public void error(SAXParseException e) throws SAXException(Code)(Java Doc) public void fatalError(SAXParseException e) throws SAXException(Code)(Java Doc) public void ignorableWhitespace(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void notationDecl(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc) public void processingInstruction(String target, String data) throws SAXException(Code)(Java Doc) public InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException(Code)(Java Doc) public void setDocumentLocator(Locator locator)(Code)(Java Doc) public void skippedEntity(String name) throws SAXException(Code)(Java Doc) public void startDocument() throws SAXException(Code)(Java Doc) public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException(Code)(Java Doc) public void startPrefixMapping(String prefix, String uri) throws SAXException(Code)(Java Doc) public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException(Code)(Java Doc) public void warning(SAXParseException e) throws SAXException(Code)(Java Doc)
|
|
|