public class ExternalDecimal extends Object
Modifier and Type | Method and Description |
---|---|
static int |
checkExternalDecimal(byte[] byteArray,
int offset,
int precision,
int decimalType,
int bytesWithSpaces)
Checks the validity of a External Decimal, returns an integer indicating the status of the External Decimal.
|
public static int checkExternalDecimal(byte[] byteArray, int offset, int precision, int decimalType, int bytesWithSpaces)
byteArray
- source array.offset
- starting offset of the External Decimal.precision
- number of digits to be verified.decimalType
- constant indicating the type of the decimal. Supported values are
DecimalData.EBCDIC_SIGN_EMBEDDED_TRAILING, DecimalData.EBCDIC_SIGN_EMBEDDED_LEADING,
DecimalData.EBCDIC_SIGN_SEPARATE_TRAILING, DecimalData.EBCDIC_SIGN_SEPARATE_LEADING.bytesWithSpaces
- represents number of left most bytes containing EBCDIC space character if sign is
embedded, ignored otherwise.NullPointerException
- if byteArray
is null.ArrayIndexOutOfBoundsException
- if an invalid array access occurs.IllegalArgumentException
- if the precision is less than 1.IllegalArgumentException
- if the offset is less than 0.IllegalArgumentException
- if decimalType
is invalid.IllegalArgumentException
- if bytesWithSpaces
is less than 0 when sign is embedded.Eclipse OpenJ9 website.
To raise a bug report or suggest an improvement create an Eclipse OpenJ9 issue.
Copyright © 2013, 2025 IBM Corp. and others.