Fix #9 - Binary parsing with CustomBinaryField for LLBIN/LLLBIN fields

This commit is contained in:
Enrique Zamudio
2013-05-07 15:37:49 -05:00
parent b164af83c4
commit be54b9f38e
3 changed files with 67 additions and 23 deletions
@@ -72,7 +72,7 @@ public abstract class FieldParseInfo {
* @param custom A CustomField to decode the field. */
public abstract <T> IsoValue<?> parse(final int field, byte[] buf, int pos,
CustomField<T> custom)
throws ParseException, UnsupportedEncodingException;
throws ParseException, UnsupportedEncodingException;
/** Parses binary data from the buffer, creating and returning an IsoValue of the configured
* type and length.
@@ -82,7 +82,7 @@ public abstract class FieldParseInfo {
* @param custom A CustomField to decode the field. */
public abstract <T> IsoValue<?> parseBinary(final int field, byte[] buf, int pos,
CustomField<T> custom)
throws ParseException, UnsupportedEncodingException;
throws ParseException, UnsupportedEncodingException;
/** Returns a new FieldParseInfo instance that can parse the specified type. */
public static FieldParseInfo getInstance(IsoType t, int len, String encoding) {