public abstract class TaggedFieldPackagerBase extends ISOFieldPackager
pad, trim
Constructor and Description |
---|
TaggedFieldPackagerBase() |
TaggedFieldPackagerBase(int len,
java.lang.String description) |
Modifier and Type | Method and Description |
---|---|
protected abstract ISOFieldPackager |
getDelegate(int len,
java.lang.String description) |
int |
getMaxPackedLength() |
int |
getParentFieldNumber() |
protected TagMapper |
getTagMapper() |
protected abstract int |
getTagNameLength() |
protected boolean |
isPackingLenient() |
protected boolean |
isUnpackingLenient() |
byte[] |
pack(ISOComponent c) |
void |
pack(ISOComponent c,
java.io.ObjectOutput out) |
void |
setPackingLenient(boolean packingLenient) |
void |
setParentFieldNumber(int parentFieldNumber) |
void |
setTagMapper(TagMapper tagMapper) |
void |
setUnpackingLenient(boolean unpackingLenient) |
int |
unpack(ISOComponent c,
byte[] b,
int offset) |
void |
unpack(ISOComponent c,
java.io.InputStream in) |
createComponent, getDescription, getLength, readBytes, setDescription, setLength, setPad, setTrim
public TaggedFieldPackagerBase()
public TaggedFieldPackagerBase(int len, java.lang.String description)
len
- -
field lendescription
- symbolic descriptionpublic byte[] pack(ISOComponent c) throws ISOException
pack
in class ISOFieldPackager
c
- -
a componentISOException
public void pack(ISOComponent c, java.io.ObjectOutput out) throws java.io.IOException, ISOException
pack
in class ISOFieldPackager
c
- - the Component to unpackout
- - output streamjava.io.IOException
ISOException
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
protected abstract ISOFieldPackager getDelegate(int len, java.lang.String description)
protected abstract int getTagNameLength()
protected boolean isPackingLenient()
protected boolean isUnpackingLenient()
public void setPackingLenient(boolean packingLenient)
public void setUnpackingLenient(boolean unpackingLenient)
public int getMaxPackedLength()
getMaxPackedLength
in class ISOFieldPackager
public int getParentFieldNumber()
public void setParentFieldNumber(int parentFieldNumber)
public void setTagMapper(TagMapper tagMapper)
protected TagMapper getTagMapper()