Class IFA_TTLLLLCHAR
java.lang.Object
org.jpos.iso.ISOFieldPackager
org.jpos.iso.TaggedFieldPackagerBase
org.jpos.iso.IFA_TTLLLLCHAR
Packager for TTLLLLCHAR TLV subfields
-
Field Summary
Fields inherited from class ISOFieldPackager
pad, trim -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ISOFieldPackagergetDelegate(int length, String description) Returns the delegate packager for the given length and description.protected intReturns the fixed length of the tag name in bytes.Methods inherited from class TaggedFieldPackagerBase
getMaxPackedLength, getParentFieldNumber, getTagMapper, isPackingLenient, isUnpackingLenient, pack, pack, setPackingLenient, setParentFieldNumber, setTagMapper, setUnpackingLenient, unpack, unpackModifier and TypeMethodDescriptionintReturns the maximum number of bytes this packager can produce.intReturns the parent field number this tagged field is contained in.protected TagMapperReturns theTagMapperused to translate tag identifiers.protected booleanReturns whether lenient packing is enabled.protected booleanReturns whether lenient unpacking is enabled.byte[]pack(ISOComponent c) Packs the given component into a byte array.voidpack(ISOComponent c, ObjectOutput out) Packs the component to an ObjectOutput stream.voidsetPackingLenient(boolean packingLenient) Sets whether packing should tolerate optional fields that are missing.voidsetParentFieldNumber(int parentFieldNumber) Sets the parent field number this tagged field is contained in.voidsetTagMapper(TagMapper tagMapper) Sets theTagMapperused to translate tag identifiers.voidsetUnpackingLenient(boolean unpackingLenient) Sets whether unpacking should tolerate unknown or malformed tags.intunpack(ISOComponent c, byte[] b, int offset) Unpacks a field from the binary image into the given component.voidunpack(ISOComponent c, InputStream in) Unpacks a field from an input stream into the given component.Methods inherited from class ISOFieldPackager
createComponent, getDescription, getLength, readBytes, setDescription, setLength, setPad, setTrimModifier and TypeMethodDescriptioncreateComponent(int fieldNumber) Creates anISOComponentinstance appropriate for this packager.Returns the field description.intReturns the maximum field length.protected byte[]readBytes(InputStream in, int l) Reads exactlylbytes from the input stream.voidsetDescription(String description) Sets the field description.voidsetLength(int len) Sets the maximum field length.voidsetPad(boolean pad) Enables or disables padding for this field.voidsetTrim(boolean trim) Enables or disables trimming for this field.
-
Constructor Details
-
IFA_TTLLLLCHAR
public IFA_TTLLLLCHAR()Default constructor; no instance state to initialise.
-
-
Method Details
-
getTagNameLength
Description copied from class:TaggedFieldPackagerBaseReturns the fixed length of the tag name in bytes.- Specified by:
getTagNameLengthin classTaggedFieldPackagerBase- Returns:
- tag name length
-
getDelegate
Description copied from class:TaggedFieldPackagerBaseReturns the delegate packager for the given length and description.- Specified by:
getDelegatein classTaggedFieldPackagerBase- Parameters:
length- field lengthdescription- field description- Returns:
- the delegate ISOFieldPackager
-