public class VISA1Packager extends SimpleLogSource implements ISOPackager, VISA1ResponseFilter
ISOPackager
,
ISOBasePackager
,
ISOComponent
Modifier and Type | Field and Description |
---|---|
static byte[] |
FS |
logger, realm
Constructor and Description |
---|
VISA1Packager(int[] sequence,
int respField,
java.lang.String badResultCode,
java.lang.String okPattern) |
Modifier and Type | Method and Description |
---|---|
ISOMsg |
createISOMsg() |
java.lang.String |
getDescription() |
java.lang.String |
getFieldDescription(ISOComponent m,
int fldNumber) |
java.lang.String |
guessAutNumber(java.lang.String s) |
protected int |
handleSpecialField35(ISOMsg m,
java.io.ByteArrayOutputStream bout) |
byte[] |
pack(ISOComponent c) |
void |
setVISA1ResponseFilter(VISA1ResponseFilter filter) |
int |
unpack(ISOComponent m,
byte[] b) |
void |
unpack(ISOComponent m,
java.io.InputStream in) |
public VISA1Packager(int[] sequence, int respField, java.lang.String badResultCode, java.lang.String okPattern)
sequence
- array of fields that go to VISA1 requestrespField
- where to put responsebadResultCode
- (i.e. "05")okPattern
- (i.e. "AUT. ")public void setVISA1ResponseFilter(VISA1ResponseFilter filter)
protected int handleSpecialField35(ISOMsg m, java.io.ByteArrayOutputStream bout) throws ISOException, java.io.IOException
ISOException
java.io.IOException
public byte[] pack(ISOComponent c) throws ISOException
pack
in interface ISOPackager
c
- the Component to packISOException
- on errorpublic java.lang.String guessAutNumber(java.lang.String s)
guessAutNumber
in interface VISA1ResponseFilter
public int unpack(ISOComponent m, byte[] b) throws ISOException
unpack
in interface ISOPackager
m
- the Container of this messageb
- ISO message imageISOException
- on errorpublic void unpack(ISOComponent m, java.io.InputStream in) throws ISOException
unpack
in interface ISOPackager
ISOException
public java.lang.String getFieldDescription(ISOComponent m, int fldNumber)
getFieldDescription
in interface ISOPackager
m
- the Container (i.e. an ISOMsg)fldNumber
- the Field Numberpublic java.lang.String getDescription()
getDescription
in interface ISOPackager
public ISOMsg createISOMsg()
createISOMsg
in interface ISOPackager