public class SAXReader extends DefaultHandler2
Modifier and Type | Class and Description |
---|---|
class |
SAXReader.SAXReaderObject |
Modifier and Type | Method and Description |
---|---|
boolean |
assertValid() |
void |
characters(char[] ch,
int start,
int length) |
void |
comment(char[] ch,
int start,
int length) |
void |
endDocument() |
void |
endElement(String uri,
String localName,
String qName) |
void |
error(SAXParseException e) |
void |
fatalError(SAXParseException e) |
ArrayList<SAXParseException> |
getErrors() |
XFTItem |
getItem() |
XFTItem |
getTemplate() |
XFTItem |
parse(File data) |
XFTItem |
parse(File data,
String stopAtXMLPath)
Stops loading document after specified tag is reached.
|
XFTItem |
parse(InputSource data) |
XFTItem |
parse(InputStream data) |
XFTItem |
parse(Reader data) |
XFTItem |
parse(String file_path) |
void |
setTemplate(XFTItem template) |
void |
startDocument() |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
void |
startPrefixMapping(String prefix,
String uri) |
String |
toString() |
attributeDecl, elementDecl, endCDATA, endDTD, endEntity, externalEntityDecl, getExternalSubset, internalEntityDecl, resolveEntity, resolveEntity, startCDATA, startDTD, startEntity
endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, unparsedEntityDecl, warning
public SAXReader(UserI u)
public XFTItem getItem()
public XFTItem getTemplate()
public void setTemplate(XFTItem template)
public XFTItem parse(File data) throws IOException, SAXException
IOException
SAXException
public XFTItem parse(File data, String stopAtXMLPath) throws IOException, SAXException
data
- stopAtXMLPath
- IOException
SAXException
public XFTItem parse(Reader data) throws IOException, SAXException
IOException
SAXException
public XFTItem parse(InputSource data) throws IOException, SAXException
IOException
SAXException
public XFTItem parse(InputStream data) throws IOException, SAXException
IOException
SAXException
public XFTItem parse(String file_path) throws IOException, SAXException
IOException
SAXException
public void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping
in interface ContentHandler
startPrefixMapping
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void error(SAXParseException e) throws SAXException
error
in interface ErrorHandler
error
in class org.xml.sax.helpers.DefaultHandler
SAXException
public boolean assertValid()
public ArrayList<SAXParseException> getErrors()
public void fatalError(SAXParseException e) throws SAXException
fatalError
in interface ErrorHandler
fatalError
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void comment(char[] ch, int start, int length) throws SAXException
comment
in interface LexicalHandler
comment
in class DefaultHandler2
SAXException
Copyright © 2015 Neuroinformatics Research Group. All rights reserved.