public final class LisRepresentationCode extends Object
See LIS 79 Documentation Appendix B. The terms used below is not used in LIS. They are taken from the DLIS documentation where an equivalent representation code exists.
Modifier and Type | Field and Description |
---|---|
static int |
ASCII
String.
|
static int |
FFIXED
Four byte fixed point.
|
static int |
FSHORT
Two byte floating point.
|
static int |
FSINGL
Four byte floating point.
|
static int |
MASK
Mask bits.
|
static int |
SLONG
Four byte signed integer.
|
static int |
SSHORT
One byte signed integer [-127,128].
|
static int |
UNORM
Two byte unsigned integer.
|
static int |
USHORT
One byte unsigned integer [0,255].
|
static int |
VSINGL
Four byte floating point.
|
Modifier and Type | Method and Description |
---|---|
static int |
get(Class<?> dataType)
Return representation code for the corresponding
data type.
|
static int |
getSize(int representationCode)
Return size in bytes of an entry of the specified representation code.
|
static Class<?> |
getValueType(int representationCode)
Return the value type (i.e.
|
public static final int FSHORT
public static final int FSINGL
public static final int SSHORT
public static final int ASCII
public static final int USHORT
public static final int VSINGL
public static final int FFIXED
public static final int SLONG
public static final int MASK
public static final int UNORM
public static int getSize(int representationCode)
representationCode
- Representation code to check.public static Class<?> getValueType(int representationCode)
representationCode
- Representation code to check.public static int get(Class<?> dataType)
dataType
- Data type to get representation code for. Non-null.IllegalArgumentException
- If dataType is null or the data type
is not supported by LIS.Copyright © 2024 Petroware AS - https://petroware.no