Package com.solab.iso8583.parse.date
Class TimeParseInfo
java.lang.Object
com.solab.iso8583.parse.FieldParseInfo
com.solab.iso8583.parse.date.DateTimeParseInfo
com.solab.iso8583.parse.date.TimeParseInfo
This class is used to parse TIME fields.
-
Field Summary
Fields inherited from class com.solab.iso8583.parse.date.DateTimeParseInfo
FUTURE_TOLERANCE, tz
Fields inherited from class com.solab.iso8583.parse.FieldParseInfo
forceHexadecimalLength, forceStringDecoding, length, type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionparse
(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.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.date.DateTimeParseInfo
adjustWithFutureTolerance, createParserForType, createValue, getDefaultTimeZone, getTimeZone, setDefaultTimeZone, setTimeZone
Methods inherited from class com.solab.iso8583.parse.FieldParseInfo
decodeLength, getCharacterEncoding, getDecoder, getInstance, getLength, getType, setCharacterEncoding, setDecoder, setForceHexadecimalLength, setForceStringDecoding
-
Constructor Details
-
TimeParseInfo
public TimeParseInfo()
-
-
Method Details
-
parse
public <T> IsoValue<Date> parse(int field, byte[] buf, int pos, CustomField<T> custom) throws ParseException, 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:
ParseException
UnsupportedEncodingException
-
parseBinary
public <T> IsoValue<Date> parseBinary(int field, byte[] buf, int pos, CustomField<T> custom) throws 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:
ParseException
-