public abstract class ValueCodec
extends java.lang.Object
| Constructor | Description |
|---|---|
ValueCodec() |
| Modifier and Type | Method | Description |
|---|---|---|
abstract java.lang.String |
formatValue(java.lang.Object value,
int maxLength) |
Returns a string representation of a given value in the context of
this codec.
|
static ValueCodec[] |
getCodecs(uk.ac.starlink.table.ValueInfo info) |
Returns an array of ValueCodec objects suitable for representing
the values pertaining to a given ValueInfo object.
|
abstract java.lang.Object |
unformatString(java.lang.String text) |
Decodes a string to give a value in the context of this codec.
|
public abstract java.lang.Object unformatString(java.lang.String text)
text - string representation of the valuepublic abstract java.lang.String formatValue(java.lang.Object value,
int maxLength)
value - value objectmaxLength - maximum number of characters in the returned stringpublic static ValueCodec[] getCodecs(uk.ac.starlink.table.ValueInfo info)
info - description of the value to representCopyright © 2003-2018 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.