public class SWEData extends DataList implements ISweInputDataStream, ISweOutputDataStream
Implementation of SWE input/output data stream storing data in memory, This class also contains methods for parsing/writing the stored data.
Modifier and Type | Field and Description |
---|---|
protected DataSource |
dataSource |
blockIterator, tempComponent
elementCount, elementType, ELT_COUNT_NAME, encoding, values
dataBlock, definition, encodingInfo, INDENT, MAX_ARRAY_ERRORS, optional, parent, scalarCount, updatable
description, identifier, label
extensionList, id
Constructor and Description |
---|
SWEData() |
Modifier and Type | Method and Description |
---|---|
SWEData |
clone()
Get a full recursive copy of this component.
|
SWEData |
copy()
Return a structural copy of this component
The copy is done recursively, but only the structure is copied (not the data)
|
DataStreamParser |
getDataParser()
Retrieves parser created for this SWE structure/encoding pair
Allows the use of the parser on a separate input streams w/ same structure
|
DataSource |
getDataSource() |
DataStreamWriter |
getDataWriter()
Retrieves writer created for this structure/encoding pair
Allows the use of the writer on separate output streams
|
DataBlock |
getNextDataBlock() |
DataComponent |
getNextElement() |
int |
getNumElements() |
void |
parseData()
Parses data from the internally stored data source stream
and stores data blocks in a DataList
|
void |
parseData(DataSource dataSource)
Parses data from the given data source stream and stores
data blocks in the DataList
|
void |
pushNextDataBlock(DataBlock dataBlock) |
void |
setDataSource(DataSource dataSource) |
void |
setElementType(DataComponent elementType) |
void |
writeData(DataSink dataSink)
Writes data blocks to the data stream specified
|
accept, addData, checkIndex, clearData, copyTo, createDataBlock, getComponent, getComponent, getComponentCount, getComponentIndex, getListComponent, hasNext, isSetElementCount, nextComponent, nextDataBlock, resetIterator, setData, toString, updateAtomCount, updateSize, updateSize, updateStartIndex, validateData
addComponent, copyTo, getElementCount, getElementCountProperty, getElementType, getElementTypeProperty, getEncoding, getValues, hasConstraints, isImplicitSize, isSetEncoding, isSetValues, isVariableSize, removeComponent, removeComponent, setElementCount, setElementType, setEncoding, setValues, setVariableSizeComponent
assignNewDataBlock, copyTo, getData, getDefinition, getEncodingInfo, getName, getOptional, getParent, getUpdatable, isSetDefinition, isSetOptional, isSetUpdatable, renewDataBlock, setDefinition, setEncodingInfo, setName, setOptional, setParent, setUpdatable, toString, unSetOptional, unSetUpdatable
copyTo, getDescription, getIdentifier, getLabel, isSetDescription, isSetIdentifier, isSetLabel, setDescription, setIdentifier, setLabel
addExtension, copyTo, getExtensionList, getId, getNumExtensions, isSetId, setId
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEncoding
getElementType
setEncoding
isImplicitSize, isVariableSize
getElementCount, getElementCountProperty, getElementType, getElementTypeProperty, getEncoding, getValues, isSetEncoding, isSetValues, setElementCount, setElementType, setEncoding, setValues
addComponent, assignNewDataBlock, getData, getDefinition, getName, getOptional, getParent, getUpdatable, hasConstraints, isSetDefinition, isSetOptional, isSetUpdatable, removeComponent, removeComponent, renewDataBlock, setDefinition, setName, setOptional, setUpdatable, unSetOptional, unSetUpdatable
protected DataSource dataSource
public SWEData copy()
DataComponent
copy
in interface HasCopy
copy
in interface DataArray
copy
in interface DataComponent
copy
in interface DataStream
copy
in class DataList
public DataComponent getNextElement()
getNextElement
in interface IDataProvider
public DataBlock getNextDataBlock()
getNextDataBlock
in interface IDataProvider
public void pushNextDataBlock(DataBlock dataBlock)
pushNextDataBlock
in interface IDataConsumer
public DataSource getDataSource()
public void setDataSource(DataSource dataSource)
public DataStreamParser getDataParser()
public DataStreamWriter getDataWriter()
public void parseData() throws IOException
IOException
public void parseData(DataSource dataSource) throws IOException
dataSource
- IOException
public void writeData(DataSink dataSink) throws IOException
dataSink
- IOException
public SWEData clone()
DataComponent
clone
in interface DataComponent
clone
in class AbstractDataComponentImpl
public void setElementType(DataComponent elementType)
setElementType
in interface IDataConsumer
public int getNumElements()
getNumElements
in interface IDataProvider
Copyright © 2016 Sensia Software LLC. All rights reserved.