Class BaseXMLReader
java.lang.Object
org.openstreetmap.osmosis.xml.v0_6.impl.BaseXMLReader
- Direct Known Subclasses:
FastXmlReader,XmlChangeReader,XmlReader
Handles common functionality used by XML readers.
-
Constructor Summary
ConstructorsConstructorDescriptionBaseXMLReader(File file, boolean enableDateParsing, CompressionMethod method) Default Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidhandleXML(DefaultHandler handler) Function to handle the XML for the sub classes.booleanReturns whether this object enables date parsing or not.protected voidparseXML(InputStream stream, DefaultHandler handler) Function to parse xml, this default function just uses the SAXParser.
-
Constructor Details
-
BaseXMLReader
Default Constructor.- Parameters:
file- File to parseenableDateParsing- whether to enable date parsing or notmethod- The compression method if any
-
-
Method Details
-
isEnableDateParsing
public boolean isEnableDateParsing()Returns whether this object enables date parsing or not.- Returns:
- true or false
-
parseXML
protected void parseXML(InputStream stream, DefaultHandler handler) throws SAXException, IOException Function to parse xml, this default function just uses the SAXParser.- Parameters:
stream- InputStream for the XMLhandler- A handler for the XML- Throws:
SAXException- If there is any exceptions while parsing the XMLIOException- If there is any issues with the input stream
-
handleXML
Function to handle the XML for the sub classes.- Parameters:
handler- ADefaultHandler
-