Package com.solab.iso8583.parse
Class NumericParseInfo
- java.lang.Object
-
- com.solab.iso8583.parse.FieldParseInfo
-
- com.solab.iso8583.parse.AlphaNumericFieldParseInfo
-
- com.solab.iso8583.parse.NumericParseInfo
-
public class NumericParseInfo extends AlphaNumericFieldParseInfo
This class is used to parse NUMERIC fields.
-
-
Field Summary
-
Fields inherited from class com.solab.iso8583.parse.FieldParseInfo
forceHexadecimalLength, forceStringDecoding, length, type
-
-
Constructor Summary
Constructors Constructor Description NumericParseInfo(int len)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> IsoValue<java.lang.Number>
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.AlphaNumericFieldParseInfo
parse
-
Methods inherited from class com.solab.iso8583.parse.FieldParseInfo
decodeLength, getCharacterEncoding, getDecoder, getInstance, getLength, getType, setCharacterEncoding, setDecoder, setForceHexadecimalLength, setForceStringDecoding
-
-
-
-
Method Detail
-
parseBinary
public <T> IsoValue<java.lang.Number> parseBinary(int field, byte[] buf, int pos, CustomField<T> custom) throws java.text.ParseException
Description copied from class:FieldParseInfo
Parses binary data from the buffer, creating and returning an IsoValue of the configured type and length.- Specified by:
parseBinary
in 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
-
-