public abstract class DataEncoding extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected int |
sizeInBits
size in bits if known.
|
| Modifier and Type | Method and Description |
|---|---|
ByteOrder |
getByteOrder() |
Set<Parameter> |
getDependentParameters() |
Algorithm |
getFromBinaryTransformAlgorithm() |
int |
getSizeInBits()
Returns the size in bits of data encoded according to this encoding.
|
abstract 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 |
setByteOrder(ByteOrder order) |
void |
setFromBinaryTransformAlgorithm(Algorithm fromBinaryTransformAlgorithm) |
void |
setSizeInBits(int sizeInBits) |
protected int sizeInBits
public int getSizeInBits()
StringDataEncoding the size may be variable (depending on the data to be
encoded). In this cases it returns -1.public void setSizeInBits(int sizeInBits)
public ByteOrder getByteOrder()
public void setByteOrder(ByteOrder order)
public abstract Object parseString(String stringValue)
public Algorithm getFromBinaryTransformAlgorithm()
public void setFromBinaryTransformAlgorithm(Algorithm fromBinaryTransformAlgorithm)
Copyright © 2018 Space Applications Services. All rights reserved.