public class SWEFilter extends InputStream
Simple filter to be able to parse the DataDefinition
using DOM before the end of the XML document is reached
and start processing inline data as it comes.
The filter starts by passing data through while recording
the element hierarchy down to the element containing the data stream.
When this element is reached its content is not read and
the filter simulates a valid end of the xml tree by writing
closing tags for all elements previously recorded, then EOF.
Constructor and Description |
---|
SWEFilter(InputStream source) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
read() |
void |
setDataElementName(String eltName)
Sets element name that contains the data stream values (ascii, base64, etc.)
TODO setDataElementName method description
|
void |
startReadingData() |
available, mark, markSupported, read, read, reset, skip
public SWEFilter(InputStream source)
public int read() throws IOException
read
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public void startReadingData()
public void setDataElementName(String eltName)
eltName
- Copyright © 2016 Sensia Software LLC. All rights reserved.