public class ExternalDecimal
extends java.lang.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.java.lang.NullPointerException - if byteArray is null.java.lang.ArrayIndexOutOfBoundsException - if an invalid array access occurs.java.lang.IllegalArgumentException - if the precision is less than 1.java.lang.IllegalArgumentException - if the offset is less than 0.java.lang.IllegalArgumentException - if decimalType is invalid.java.lang.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.
DRAFT internal-b00