From 3d0749687ecf8256591820ed8c1b2a455cf5ae2d Mon Sep 17 00:00:00 2001 From: Enrique Zamudio Date: Wed, 27 Nov 2013 11:01:24 -0600 Subject: [PATCH] work on #20 optional CustomField in FieldParseInfo --- src/main/java/com/solab/iso8583/parse/FieldParseInfo.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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.