work on #20 optional CustomField in FieldParseInfo

This commit is contained in:
Enrique Zamudio
2013-11-27 11:01:24 -06:00
parent 32dc578814
commit 3d0749687e
@@ -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.