public class BinaryDataEncoding extends DataEncoding
DataEncoding for how to use the other classes to
encode/decode arbitrary binary to a
float/integer/string.
DIFFERS_FROM_XTCE: XTCE doesn't support LEADING_SIZE parameter types (it does only for strings). However it allows the size to be specified dynamically by the value of another parameter.
| Modifier and Type | Class and Description |
|---|---|
static class |
BinaryDataEncoding.Builder |
static class |
BinaryDataEncoding.Type |
fromBinaryTransformAlgorithm, sizeInBits| Constructor and Description |
|---|
BinaryDataEncoding(BinaryDataEncoding.Builder builder) |
BinaryDataEncoding(BinaryDataEncoding bde)
copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
BinaryDataEncoding |
copy()
Create a shallow copy of the data encoding
|
int |
getSizeInBitsOfSizeTag() |
BinaryDataEncoding.Type |
getType() |
Object |
parseString(String stringValue)
parses the string into a java object of the correct type
Has to match the DataEncodingDecoder (so probably it should be moved there somehow: TODO)
|
void |
setSizeInBitsOfSizeTag(int sizeInBits) |
void |
setSizeType(BinaryDataEncoding.Type sizeType) |
BinaryDataEncoding.Builder |
toBuilder() |
String |
toString() |
getByteOrder, getDependentParameters, getFromBinaryTransformAlgorithm, getSizeInBits, setFromBinaryTransformAlgorithm, setSizeInBitspublic BinaryDataEncoding(BinaryDataEncoding bde)
bde - public BinaryDataEncoding(BinaryDataEncoding.Builder builder)
public BinaryDataEncoding.Builder toBuilder()
toBuilder in class DataEncodingpublic void setSizeType(BinaryDataEncoding.Type sizeType)
public BinaryDataEncoding.Type getType()
public int getSizeInBitsOfSizeTag()
public void setSizeInBitsOfSizeTag(int sizeInBits)
public Object parseString(String stringValue)
DataEncodingparseString in class DataEncodingpublic BinaryDataEncoding copy()
DataEncodingcopy in class DataEncodingCopyright © 2020 Space Applications Services. All rights reserved.