public class ISOMsgFieldPackager extends ISOFieldPackager
PostPackager
Modifier and Type | Field and Description |
---|---|
protected ISOFieldPackager |
fieldPackager |
protected ISOPackager |
msgPackager |
pad, trim
Constructor and Description |
---|
ISOMsgFieldPackager(ISOFieldPackager fieldPackager,
ISOPackager msgPackager) |
Modifier and Type | Method and Description |
---|---|
ISOComponent |
createComponent(int fieldNumber) |
ISOFieldPackager |
getISOFieldPackager() |
ISOPackager |
getISOMsgPackager() |
int |
getMaxPackedLength() |
byte[] |
pack(ISOComponent c) |
int |
unpack(ISOComponent c,
byte[] b,
int offset) |
void |
unpack(ISOComponent c,
java.io.InputStream in) |
getDescription, getLength, pack, readBytes, setDescription, setLength, setPad, setTrim
protected ISOPackager msgPackager
protected ISOFieldPackager fieldPackager
public ISOMsgFieldPackager(ISOFieldPackager fieldPackager, ISOPackager msgPackager)
fieldPackager
- low level field packagermsgPackager
- ISOMsgField default packagerpublic byte[] pack(ISOComponent c) throws ISOException
pack
in class ISOFieldPackager
c
- - a componentISOException
public int unpack(ISOComponent c, byte[] b, int offset) throws ISOException
unpack
in class ISOFieldPackager
c
- - the Component to unpackb
- - binary imageoffset
- - starting offset within the binary imageISOException
public void unpack(ISOComponent c, java.io.InputStream in) throws java.io.IOException, ISOException
unpack
in class ISOFieldPackager
c
- - the Component to unpackin
- - input streamISOException
java.io.IOException
public ISOComponent createComponent(int fieldNumber)
createComponent
in class ISOFieldPackager
public int getMaxPackedLength()
getMaxPackedLength
in class ISOFieldPackager
public ISOPackager getISOMsgPackager()
public ISOFieldPackager getISOFieldPackager()