Class IF_TBASE
java.lang.Object
org.jpos.iso.ISOFieldPackager
org.jpos.iso.IF_TBASE
- All Implemented Interfaces:
TaggedFieldPackager
- Direct Known Subclasses:
IF_TCHAR
IF_TBASE base field packager for IF_T* class
deal fields terminated by special token
- See Also:
-
Field Summary
Fields inherited from class ISOFieldPackager
pad, trim -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ISOFieldPackager
createComponent, getDescription, getLength, getMaxPackedLength, pack, pack, readBytes, setDescription, setLength, setPad, setTrim, unpack, unpackModifier and TypeMethodDescriptioncreateComponent(int fieldNumber) Creates anISOComponentinstance appropriate for this packager.Returns the field description.intReturns the maximum field length.abstract intReturns the maximum number of bytes this packager can produce.abstract byte[]pack(ISOComponent c) Packs the given component into a byte array.voidpack(ISOComponent c, ObjectOutput out) Packs the component to an ObjectOutput stream.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.abstract 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.
-
Constructor Details
-
IF_TBASE
public IF_TBASE()Default constructor. -
IF_TBASE
-
IF_TBASE
-
-
Method Details
-
setToken
Description copied from interface:TaggedFieldPackagerSets the tag token for this packager.- Specified by:
setTokenin interfaceTaggedFieldPackager- Parameters:
token- the tag token
-
getToken
Description copied from interface:TaggedFieldPackagerReturns the tag token for this packager.- Specified by:
getTokenin interfaceTaggedFieldPackager- Returns:
- the tag token
-