use of org.jpos.iso.ISOException in project jPOS by jpos.
the class CTCSubFieldPackager method pack.
public byte[] pack(ISOComponent c) throws ISOException {
try {
Map tab = c.getChildren();
StringBuilder sb = new StringBuilder();
for (int i = 0; i < fld.length; i++) {
ISOField f = (ISOField) tab.get(i);
if (f != null) {
sb.append(new String(fld[i].pack(f)));
}
}
return sb.toString().getBytes();
} catch (Exception ex) {
throw new ISOException(this.getRealm() + ": " + ex.getMessage(), ex);
}
}
Aggregations