|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.solab.iso8583.parse.FieldParseInfo
public class FieldParseInfo
This class contains the information needed to parse a field from a message buffer.
| Constructor Summary | |
|---|---|
FieldParseInfo(IsoType t,
int len)
Creates a new instance that parses a value of the specified type, with the specified length. |
|
| Method Summary | ||
|---|---|---|
int |
getLength()
Returns the specified length for the data to be parsed. |
|
IsoType |
getType()
Returns the data type for the data to be parsed. |
|
|
parse(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(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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FieldParseInfo(IsoType t,
int len)
t - The ISO type to be parsed.len - The length of the data to be read (useful only for ALPHA and NUMERIC types).| Method Detail |
|---|
public int getLength()
public IsoType getType()
public <T> IsoValue<?> parse(byte[] buf,
int pos,
CustomField<T> custom)
throws ParseException
ParseException
public <T> IsoValue<?> parseBinary(byte[] buf,
int pos,
CustomField<T> custom)
throws ParseException
ParseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||