Package org.vast.swe
Class FilteredWriter
java.lang.Object
org.vast.swe.DataTreeVisitor
org.vast.swe.AbstractDataWriter
org.vast.swe.FilteredWriter
- All Implemented Interfaces:
 DataStreamWriter
 Delegating writer for writing only the selected components.
 This is used to implement filtering by observed property in SOS. 
 
- Since:
 - Oct 9, 2015
 
- 
Nested Class Summary
Nested classes/interfaces inherited from class org.vast.swe.DataTreeVisitor
DataTreeVisitor.Record - 
Field Summary
Fields inherited from class org.vast.swe.AbstractDataWriter
CHOICE_ERROR, dataTypeUtils, NO_HANDLER_ERROR, stopWriting, STREAM_ERRORFields inherited from class org.vast.swe.DataTreeVisitor
componentStack, currentRecord, dataComponents, dataEncoding, dataHandler, endOfArray, errorHandler, newBlock, parentArray, parentArrayIndex, parsing, rawHandler - 
Constructor Summary
ConstructorsConstructorDescriptionFilteredWriter(AbstractDataWriter writer, Collection<String> enabledDefUris)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voidvoidflush()protected voidprocessAtom(ScalarComponent component) Processes a scalar componentprotected booleanprocessBlock(DataComponent component) Processes an aggregate componentvoidreset()Reset the parser before parsing a new tuplevoidsetDataComponents(DataComponent dataInfo) voidsetDataEncoding(DataEncoding dataEncoding) voidMethods inherited from class org.vast.swe.AbstractDataWriter
endStream, startStream, stop, write, writeMethods inherited from class org.vast.swe.DataTreeVisitor
getDataComponents, getDataEncoding, getDataHandler, getErrorHandler, getRawDataHandler, isEndOfDataBlock, processNextElement, setDataHandler, setErrorHandler, setParentArray, setRawDataHandlerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.vast.cdm.common.DataStreamWriter
getDataComponents, getDataEncoding, getDataHandler, getErrorHandler, getRawDataHandler, setDataHandler, setErrorHandler, setParentArray, setRawDataHandler 
- 
Constructor Details
- 
FilteredWriter
 
 - 
 - 
Method Details
- 
processAtom
Description copied from class:DataTreeVisitorProcesses a scalar component- Specified by:
 processAtomin classAbstractDataWriter- Throws:
 IOException
 - 
processBlock
Description copied from class:DataTreeVisitorProcesses an aggregate component- Specified by:
 processBlockin classAbstractDataWriter- Returns:
 - true if children should be processed, false otherwise
 - Throws:
 IOException
 - 
endDataBlock
- Overrides:
 endDataBlockin classDataTreeVisitor- Throws:
 CDMExceptionIOException
 - 
setDataComponents
- Specified by:
 setDataComponentsin interfaceDataStreamWriter- Overrides:
 setDataComponentsin classAbstractDataWriter
 - 
setDataEncoding
- Specified by:
 setDataEncodingin interfaceDataStreamWriter- Overrides:
 setDataEncodingin classDataTreeVisitor
 - 
setOutput
- Specified by:
 setOutputin interfaceDataStreamWriter- Specified by:
 setOutputin classAbstractDataWriter- Throws:
 IOException
 - 
close
- Specified by:
 closein interfaceDataStreamWriter- Specified by:
 closein classAbstractDataWriter- Throws:
 IOException
 - 
flush
- Specified by:
 flushin interfaceDataStreamWriter- Specified by:
 flushin classAbstractDataWriter- Throws:
 IOException
 - 
reset
public void reset()Description copied from class:DataTreeVisitorReset the parser before parsing a new tuple- Specified by:
 resetin interfaceDataStreamWriter- Overrides:
 resetin classDataTreeVisitor
 
 -