Package com.solab.iso8583.parse
Class AlphaNumericFieldParseInfo
- java.lang.Object
-
- com.solab.iso8583.parse.FieldParseInfo
-
- com.solab.iso8583.parse.AlphaNumericFieldParseInfo
-
- Direct Known Subclasses:
AlphaParseInfo
,NumericParseInfo
public abstract class AlphaNumericFieldParseInfo extends FieldParseInfo
This is the common abstract superclass to parse ALPHA and NUMERIC field types.
-
-
Field Summary
-
Fields inherited from class com.solab.iso8583.parse.FieldParseInfo
forceHexadecimalLength, forceStringDecoding, length, type
-
-
Constructor Summary
Constructors Constructor Description AlphaNumericFieldParseInfo(IsoType t, int len)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <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.-
Methods inherited from class com.solab.iso8583.parse.FieldParseInfo
decodeLength, getCharacterEncoding, getDecoder, getInstance, getLength, getType, parseBinary, setCharacterEncoding, setDecoder, setForceHexadecimalLength, setForceStringDecoding
-
-
-
-
Constructor Detail
-
AlphaNumericFieldParseInfo
public AlphaNumericFieldParseInfo(IsoType t, int len)
-
-
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:FieldParseInfo
Parses the character data from the buffer and returns the IsoValue with the correct data type in it.- Specified by:
parse
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
java.io.UnsupportedEncodingException
-
-