getBytes

Returns the byte[ ] value associated with the given field number.

public byte[] getBytes(LrISOField fldno) throws LrISOException

public byte[] getBytes(int fldno) throws LrISOException

Parameters

  • fldno: The ISOField number.

Return values

This function returns the field's byte[ ] value, or null for ISOException.

Example

Copy code
LrISOMsg m = new LrISOMsg();
m.set(ISO87Fields.PAN_PRIMARY_ACCOUNT_NUMBER, "1234567891234567890");
byte[] accountNumberFieldBytes = m.getBytes(ISO87Fields.PAN_PRIMARY_ACCOUNT_NUMBER);