public class FilteredWriter extends AbstractDataWriter
Delegating writer for writing only the selected components.
This is used to implement filtering by observed property in SOS.
DataTreeVisitor.Record
CHOICE_ERROR, dataTypeUtils, NO_HANDLER_ERROR, stopWriting, STREAM_ERROR
componentStack, currentRecord, dataComponents, dataEncoding, dataHandler, endOfArray, errorHandler, newBlock, parentArray, parentArrayIndex, parsing, rawHandler
Constructor and Description |
---|
FilteredWriter(AbstractDataWriter writer,
Collection<String> enabledDefUris) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
endDataBlock() |
void |
flush() |
protected void |
processAtom(ScalarComponent component) |
protected boolean |
processBlock(DataComponent component)
Process an aggregate component
|
void |
reset()
Reset the parser before parsing a new tuple
|
void |
setDataComponents(DataComponent dataInfo) |
void |
setDataEncoding(DataEncoding dataEncoding) |
void |
setOutput(OutputStream os) |
stop, write, write
getDataComponents, getDataEncoding, getDataHandler, getErrorHandler, getRawDataHandler, isEndOfDataBlock, processNextElement, setDataHandler, setErrorHandler, setParentArray, setRawDataHandler
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDataComponents, getDataEncoding, getDataHandler, getErrorHandler, getRawDataHandler, setDataHandler, setErrorHandler, setParentArray, setRawDataHandler
public FilteredWriter(AbstractDataWriter writer, Collection<String> enabledDefUris)
protected void processAtom(ScalarComponent component) throws IOException
processAtom
in class AbstractDataWriter
IOException
protected boolean processBlock(DataComponent component) throws IOException
DataTreeVisitor
processBlock
in class AbstractDataWriter
IOException
protected void endDataBlock() throws Exception
endDataBlock
in class DataTreeVisitor
Exception
public void setDataComponents(DataComponent dataInfo)
setDataComponents
in interface DataStreamWriter
setDataComponents
in class AbstractDataWriter
public void setDataEncoding(DataEncoding dataEncoding)
setDataEncoding
in interface DataStreamWriter
setDataEncoding
in class DataTreeVisitor
public void setOutput(OutputStream os) throws IOException
setOutput
in interface DataStreamWriter
setOutput
in class AbstractDataWriter
IOException
public void close() throws IOException
close
in interface DataStreamWriter
close
in class AbstractDataWriter
IOException
public void flush() throws IOException
flush
in interface DataStreamWriter
flush
in class AbstractDataWriter
IOException
public void reset()
DataTreeVisitor
reset
in interface DataStreamWriter
reset
in class DataTreeVisitor
Copyright © 2016 Sensia Software LLC. All rights reserved.