public class TDMSChannel extends TDMSObject
Modifier and Type | Field and Description |
---|---|
java.lang.String |
btfFilename |
java.lang.String |
btfFlagFilename |
long |
btfFlagStartPosition |
int |
btfLength |
long |
btfStartPosition |
TDMSDataTypeEnum |
dataType |
int |
dimension |
TDMSRawData |
dtmsFlagRawData |
TDMSRawData |
dtmsRawData |
short |
globalFlag |
java.lang.String |
name |
long |
numberDatablocks |
long |
numberOfValues |
long |
numberOfValuesPerBlock |
java.lang.String |
path |
long |
rawDataBlockLength |
long |
totalStringSizeReal |
long |
totalStringSizeTdmsFile |
properties
Modifier and Type | Method and Description |
---|---|
void |
addDataInformation(TDMSDataTypeEnum dataType,
int dimension,
long numberOfValues)
Creates a new property for the channel with values from tdms file
|
void |
addInterleavedRawData(byte[] buffer)
Adds the raw data from a tdms segment to the raw data buffer
|
void |
addNonInterleavedRawData(byte[] buffer)
Adds the raw data from a tdms segment to the raw data buffer
|
void |
addProperty(TDMSProperty property) |
void |
addStringValue(byte[] buffer)
Adds a string from a tdms segment to the raw data buffer
|
void |
addTotalStringSize(long totalStringSize)
Creates a new property for the channel with values from tdms file
|
long |
calculateLength()
Calculates the length of a raw data block from imput file
|
java.util.Map<java.lang.String,java.lang.String> |
getAttributesForExternalComponent()
Returns the information about the written raw data for creating ExternalComponent
|
java.util.Map<java.lang.String,java.lang.String> |
getChannelProperties()
Returns the channel properties as HashMap
|
long |
getRawDataLength() |
java.lang.String |
getStatisticValue() |
void |
printValuesToSysout() |
int |
writeToBtfFile(java.nio.channels.FileChannel channel,
java.lang.String fileName,
java.nio.channels.FileChannel channelFlags,
java.lang.String flagFileName)
Writes the bytes from the raw data buffer to btf file
|
getSortedMapWithStringValues
public java.lang.String name
public java.lang.String path
public TDMSDataTypeEnum dataType
public int dimension
public long rawDataBlockLength
public long numberOfValuesPerBlock
public long numberDatablocks
public long numberOfValues
public long totalStringSizeTdmsFile
public long totalStringSizeReal
public long btfStartPosition
public long btfFlagStartPosition
public int btfLength
public java.lang.String btfFilename
public java.lang.String btfFlagFilename
public short globalFlag
public TDMSRawData dtmsRawData
public TDMSRawData dtmsFlagRawData
public void addProperty(TDMSProperty property)
addProperty
in class TDMSObject
public long getRawDataLength()
public void addDataInformation(TDMSDataTypeEnum dataType, int dimension, long numberOfValues) throws TDMSParserException
TDMSParserException
public void addTotalStringSize(long totalStringSize)
public long calculateLength()
public void addInterleavedRawData(byte[] buffer)
public void addNonInterleavedRawData(byte[] buffer)
public void addStringValue(byte[] buffer)
public java.lang.String getStatisticValue()
public java.util.Map<java.lang.String,java.lang.String> getChannelProperties() throws TDMSParserException
TDMSParserException
public int writeToBtfFile(java.nio.channels.FileChannel channel, java.lang.String fileName, java.nio.channels.FileChannel channelFlags, java.lang.String flagFileName) throws java.io.IOException
java.io.IOException
public java.util.Map<java.lang.String,java.lang.String> getAttributesForExternalComponent()
public void printValuesToSysout()