|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<FieldType>
dk.vajhoej.record.FieldType
public enum FieldType
Enum FieldType specifies native struct types.
Semantics:
enum value | description | attributes | native implementation | Java implementation |
---|---|---|---|---|
INT1 | 8 bit signed integer | byte | ||
INT2 | 16 bit signed integer | short | ||
INT4 | 32 bit signed integer | int | ||
INT8 | 64 bit signed integer | long | ||
UINT1 | 8 bit unsigned integer | short | ||
UINT2 | 16 bit unsigned integer | int | ||
UINT4 | 32 bit unsigned integer | long | ||
FP4 | 32 bit IEEE floating point | float | ||
FP8 | 64 bit IEEE floating point | double | ||
INTX | length=<bytes used> | bytes | ulong | |
FIXSTR | Fixed length string | length=<length of string> encoding=<encoding used> (default encoding is ISO-8859-1) |
sequence of bytes | String |
FIXSTRNULTERM | Fixed length string nul terminated | length=<length of string> encoding=<encoding used> (default encoding is ISO-8859-1) |
sequence of bytes with nul bytes added for write and stripped for read | String |
VARSTR | Variable length string with length prefix | prefixlength=<prefix length> encoding=<encoding used> (default encoding is ISO-8859-1, default prefix length is 2, max. length is limited by prefix length) |
length + sequence of bytes | String |
VARFIXSTR | Variable length string with length prefix and padded to max length | prefixlength=<prefix length> length=<length of string> encoding=<encoding used> (default encoding is ISO-8859-1, default prefix length is 2, max. length is limited by prefix length) |
length + sequence of bytes | String |
REMSTR | Remaing data string | encoding=<encoding used> (default encoding is ISO-8859-1, max. length is 32767) |
sequence of bytes | string |
BOOLEAN | Boolean (0=false, other=true) | length=<bytes used> | bytes | boolean |
BIT | Bits | length=<bits used> (max. bits is 32) | bytes | int |
JAVATIME | Binary time in Java format (milliseconds since 1-Jan-1970) | 64 bit integer | java.util.Date | |
UNIXTIME | Binary time in Unix format (seconds since 1-Jan-1970) | 32 bit integer | java.util.Date | |
VMSTIME | Binary time in VMS format (100 nanoseconds since 17-Nov-1858) | 64 bit integer | java.util.Date | |
PACKEDBCD | Packed BCD (1 byte = 2 decimal digit nibbles) | length=<bytes used> decimals=<number of implied decimals> (default decimals is 0) |
sequence of bytes | java.math.BigDecimal |
ZONEDBCD | Zoned BCD (1 byte = 1 zone nibble + 1 decimal digit nibble) | length=<bytes used> decimals=<number of implied decimals> zone=<zone value> (default decimals i s0, default zone is EBCDIC) |
sequence of bytes | java.math.BigDecimal |
VAXFP4 | VAX F floating point | 32 bit VAX floating point | float | |
VAXFP8 | VAX G floating point | 64 bit VAX floating point | double | |
STRUCT | Sub struct |
Enum Constant Summary | |
---|---|
BIT
Bits. |
|
BOOLEAN
Boolean. |
|
FIXSTR
Fixed length string. |
|
FIXSTRNULTERM
Fixed length string nul terminated. |
|
FP4
32 bit IEEE floating point. |
|
FP8
64 bit IEEE floating point. |
|
INT1
8 bit signed integer. |
|
INT2
16 bit signed integer. |
|
INT4
32 bit signed integer. |
|
INT8
64 bit signed integer. |
|
INTX
8-56 bit integer (intended for 24, 40, 48 and 56 bits). |
|
JAVATIME
Binary time in Java format. |
|
PACKEDBCD
Packed BCD. |
|
REMSTR
Remaining data string. |
|
STRUCT
Sub struct. |
|
UINT1
8 bit unsigned integer. |
|
UINT2
16 bit unsigned integer. |
|
UINT4
32 bit unsigned integer. |
|
UNIXTIME
Binary time in Unix format. |
|
VARFIXSTR
Variable length string with 2 byte length prefix and padded to max length. |
|
VARSTR
Variable length string with 2 byte length prefix. |
|
VAXFP4
VAX F floating point. |
|
VAXFP8
VAX G floating point. |
|
VMSTIME
Binary time in VMS format. |
|
ZONEDBCD
Zoned BCD. |
Method Summary | |
---|---|
static FieldType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static FieldType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final FieldType INT1
public static final FieldType INT2
public static final FieldType INT4
public static final FieldType INT8
public static final FieldType UINT1
public static final FieldType UINT2
public static final FieldType UINT4
public static final FieldType FP4
public static final FieldType FP8
public static final FieldType INTX
public static final FieldType FIXSTR
public static final FieldType FIXSTRNULTERM
public static final FieldType VARSTR
public static final FieldType VARFIXSTR
public static final FieldType REMSTR
public static final FieldType BOOLEAN
public static final FieldType BIT
public static final FieldType JAVATIME
public static final FieldType UNIXTIME
public static final FieldType VMSTIME
public static final FieldType PACKEDBCD
public static final FieldType ZONEDBCD
public static final FieldType VAXFP4
public static final FieldType VAXFP8
public static final FieldType STRUCT
Method Detail |
---|
public static FieldType[] values()
for (FieldType c : FieldType.values()) System.out.println(c);
public static FieldType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |