Package org.geotools.xsd
Class PullParser
- Object
-
- PullParser
-
public class PullParser extends Object
XML pull parser capable of streaming.Similar in nature to
StreamingParser
but based on XPP pull parsing rather than SAX.- Author:
- Justin Deoliveira, OpenGeo
-
-
Constructor Summary
Constructors Constructor Description PullParser(Configuration config, InputStream input, Class type)
PullParser(Configuration config, InputStream input, Object... handlerSpecs)
PullParser(Configuration config, InputStream input, QName element)
PullParser(Configuration config, InputStream input, PullParser.PullParserHandler handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
parse()
void
setContextCustomizer(ParserHandler.ContextCustomizer contextCustomizer)
void
setStrict(boolean strict)
Sets if the parsing should be strict or notvoid
setURIHandler(URIHandler uriHandler)
Changes the URIHandler for this parser
-
-
-
Constructor Detail
-
PullParser
public PullParser(Configuration config, InputStream input, QName element)
-
PullParser
public PullParser(Configuration config, InputStream input, Class type)
-
PullParser
public PullParser(Configuration config, InputStream input, Object... handlerSpecs)
-
PullParser
public PullParser(Configuration config, InputStream input, PullParser.PullParserHandler handler)
-
-
Method Detail
-
setContextCustomizer
public void setContextCustomizer(ParserHandler.ContextCustomizer contextCustomizer)
-
setStrict
public void setStrict(boolean strict)
Sets if the parsing should be strict or not
-
setURIHandler
public void setURIHandler(URIHandler uriHandler)
Changes the URIHandler for this parser
-
parse
public Object parse() throws XMLStreamException, IOException, SAXException
-
-