Package org.vast.swe

Class SWEFilter

java.lang.Object
java.io.InputStream
org.vast.swe.SWEFilter
All Implemented Interfaces:
Closeable, AutoCloseable

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.

Since:
Aug 19, 2005
  • Constructor Details

  • Method Details

    • read

      public int read() throws IOException
      Specified by:
      read in class InputStream
      Throws:
      IOException
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class InputStream
      Throws:
      IOException
    • startReadingData

      public void startReadingData()
    • setDataElementName

      public void setDataElementName(String eltName)
      Sets element name that contains the data stream values (ascii, base64, etc.) TODO setDataElementName method description
      Parameters:
      eltName -