public class SaxRecordStream extends DataRecordStream
| Constructor and Description |
|---|
SaxRecordStream()
Create a SaxRecordStream.
|
SaxRecordStream(java.lang.String filePath)
Create a SaxRecordStream to parse the given file or directory;
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.lang.String> |
getUnknownFields()
Get the set of tags which this stream did not parse.
|
void |
setInitParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
Set any initialization parameters required by this stream reader.
|
void |
setTemplate(DataTemplate dataTemplate)
Set the data template for this DataRecordStream.
|
void |
startParse()
Start parting the file or directory.
|
void |
startParse(java.io.InputStream in)
Start parsing the input stream.
|
addListener, applyReasoner, fireRecordReceived, getReasoner, getTemplate, removeListener, setConfig, setReasonerpublic SaxRecordStream()
public SaxRecordStream(java.lang.String filePath)
filePath - path to a file or directorypublic java.util.Set<java.lang.String> getUnknownFields()
getUnknownFields in class DataRecordStreampublic void setInitParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
setInitParameters in class DataRecordStreamparameters - a map of initialization parameterspublic void setTemplate(DataTemplate dataTemplate)
setTemplate in class DataRecordStreamdataTemplate - the template to setpublic void startParse()
throws java.io.IOException,
org.xml.sax.SAXException
java.io.IOException - if there is a problem accessing the dataorg.xml.sax.SAXException - if the file(s) contain invalid XMLpublic void startParse(java.io.InputStream in)
throws org.xml.sax.SAXException,
java.io.IOException
in - the input streamjava.io.IOException - if there is a problem accessing the dataorg.xml.sax.SAXException - if the stream contains invalid XML