Class DataDefinition
Object
DataDefinition
Field definition
- Author:
- Tommaso Nolli
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addField
(int len) For classes with unknown length; this values will be threated asString
s and truncated at the specified lenvoid
Well known classes Short Integer Long Float Double DateCharacter set values are encoded in.int
Gets the len of this field after the encoding, this method may be different from getLen() only if exists strings in the definitiongetField
(int i) int
int
getLen()
Gets the max len of the datafinal boolean
isValid()
-
Constructor Details
-
DataDefinition
-
-
Method Details
-
isValid
public final boolean isValid() -
getFieldsCount
public int getFieldsCount() -
getField
-
addField
Well known classes- Short
- Integer
- Long
- Float
- Double
- Date
-
addField
public void addField(int len) For classes with unknown length; this values will be threated asString
s and truncated at the specified len -
getCharset
Character set values are encoded in. -
getLen
public int getLen()Gets the max len of the data -
getEncodedLen
public int getEncodedLen()Gets the len of this field after the encoding, this method may be different from getLen() only if exists strings in the definition
-