Package com.solab.iso8583.parse
Class LllbinParseInfo
- java.lang.Object
-
- com.solab.iso8583.parse.FieldParseInfo
-
- com.solab.iso8583.parse.LllbinParseInfo
-
- Direct Known Subclasses:
BcdLengthLllbinParseInfo
public class LllbinParseInfo extends FieldParseInfo
This class is used to parse fields of type LLLBIN.
-
-
Field Summary
-
Fields inherited from class com.solab.iso8583.parse.FieldParseInfo
forceHexadecimalLength, forceStringDecoding, length, type
-
-
Constructor Summary
Constructors Constructor Description LllbinParseInfo()LllbinParseInfo(IsoType t, int len)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetLengthForBinaryParsing(byte[] buf, int pos)<T> IsoValue<?>parse(int field, byte[] buf, int pos, CustomField<T> custom)Parses the character data from the buffer and returns the IsoValue with the correct data type in it.<T> IsoValue<?>parseBinary(int field, byte[] buf, int pos, CustomField<T> custom)Parses binary data from the buffer, creating and returning an IsoValue of the configured type and length.-
Methods inherited from class com.solab.iso8583.parse.FieldParseInfo
decodeLength, getCharacterEncoding, getDecoder, getInstance, getLength, getType, setCharacterEncoding, setDecoder, setForceHexadecimalLength, setForceStringDecoding
-
-
-
-
Constructor Detail
-
LllbinParseInfo
public LllbinParseInfo(IsoType t, int len)
-
LllbinParseInfo
public LllbinParseInfo()
-
-
Method Detail
-
parse
public <T> IsoValue<?> parse(int field, byte[] buf, int pos, CustomField<T> custom) throws java.text.ParseException, java.io.UnsupportedEncodingException
Description copied from class:FieldParseInfoParses the character data from the buffer and returns the IsoValue with the correct data type in it.- Specified by:
parsein classFieldParseInfo- Parameters:
field- The field index, useful for error reporting.buf- The full ISO message buffer.pos- The starting position for the field data.custom- A CustomField to decode the field.- Throws:
java.text.ParseExceptionjava.io.UnsupportedEncodingException
-
parseBinary
public <T> IsoValue<?> parseBinary(int field, byte[] buf, int pos, CustomField<T> custom) throws java.text.ParseException
Description copied from class:FieldParseInfoParses binary data from the buffer, creating and returning an IsoValue of the configured type and length.- Specified by:
parseBinaryin classFieldParseInfo- Parameters:
field- The field index, useful for error reporting.buf- The full ISO message buffer.pos- The starting position for the field data.custom- A CustomField to decode the field.- Throws:
java.text.ParseException
-
getLengthForBinaryParsing
protected int getLengthForBinaryParsing(byte[] buf, int pos)
-
-