work on #20 optional CustomField in FieldParseInfo
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user