public abstract class EcsvDecoder<T>
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
EcsvDecoder(java.lang.Class<T> clazz,
int[] stilShape,
java.lang.String msg)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static EcsvDecoder<?> |
createDecoder(java.lang.String datatype,
java.lang.String subtype)
Returns an instance of this class given a datatype
and optional subtype.
|
abstract T |
decode(java.lang.String txt)
Attempts to decode the supplied string to a value of this decoder's
type.
|
java.lang.Class<T> |
getContentClass()
Returns the class to which input values will be decoded.
|
int[] |
getShape()
Returns the shape of the object that is decoded,
in STIL format.
|
java.lang.String |
getWarning()
Returns any warning message concerning the behaviour of this decoder.
|
protected EcsvDecoder(java.lang.Class<T> clazz, int[] stilShape, java.lang.String msg)
clazz - destination classstilShape - shape specifier in STIL formatmsg - warning or diagnostic message concerning decoding,
or null if everything is normalpublic abstract T decode(java.lang.String txt)
txt - non-blank string to decodejava.lang.NumberFormatException - in case of unrecognised stringpublic java.lang.Class<T> getContentClass()
public int[] getShape()
public java.lang.String getWarning()
public static EcsvDecoder<?> createDecoder(java.lang.String datatype, java.lang.String subtype)
datatype - case-sensitive datatype namesubtype - subtype specifier string, or null