Package org.yamcs.xtce
Enum Class StringDataEncoding.SizeType
- All Implemented Interfaces:
Serializable
,Comparable<StringDataEncoding.SizeType>
,Constable
- Enclosing class:
- StringDataEncoding
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDataEncoding.getFromBinaryTransformAlgorithm()
will be used to decode the datafixed size has to be specified in theDataEncoding.getSizeInBits()
Like PASCAL strings, the size of the string is given as an integer at the start of the string.Like C strings, they are terminated with a special string, usually a null character. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringDataEncoding.SizeType
Returns the enum constant of this class with the specified name.static StringDataEncoding.SizeType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FIXED
fixed size has to be specified in theDataEncoding.getSizeInBits()
-
TERMINATION_CHAR
Like C strings, they are terminated with a special string, usually a null character. -
LEADING_SIZE
Like PASCAL strings, the size of the string is given as an integer at the start of the string. SizeTag must be an unsigned Integer -
CUSTOM
DataEncoding.getFromBinaryTransformAlgorithm()
will be used to decode the dataIf this is used, the algorithm will also determine the size of the buffer.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-