Package org.vast.swe
Class SWEFilter
java.lang.Object
java.io.InputStream
org.vast.swe.SWEFilter
- All Implemented Interfaces:
Closeable
,AutoCloseable
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.
- Since:
- Aug 19, 2005
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
int
read()
void
setDataElementName
(String eltName) Sets element name that contains the data stream values (ascii, base64, etc.) TODO setDataElementName method descriptionvoid
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
SWEFilter
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
startReadingData
public void startReadingData() -
setDataElementName
Sets element name that contains the data stream values (ascii, base64, etc.) TODO setDataElementName method description- Parameters:
eltName
-
-