diff --git a/src/main/java/com/solab/iso8583/parse/FieldParseInfo.java b/src/main/java/com/solab/iso8583/parse/FieldParseInfo.java index 4761b20..e4a477a 100644 --- a/src/main/java/com/solab/iso8583/parse/FieldParseInfo.java +++ b/src/main/java/com/solab/iso8583/parse/FieldParseInfo.java @@ -35,6 +35,7 @@ public abstract class FieldParseInfo { protected int length; private String encoding = System.getProperty("file.encoding"); protected boolean forceStringDecoding; + private CustomField decoder; /** Creates a new instance that parses a value of the specified type, with the specified length. * The length is only useful for ALPHA and NUMERIC types. @@ -72,6 +73,13 @@ public abstract class FieldParseInfo { return type; } + public void setDecoder(CustomField value) { + decoder = value; + } + public CustomField getDecoder() { + return decoder; + } + /** Parses the character data from the buffer and returns the * IsoValue with the correct data type in it. * @param field The field index, useful for error reporting.