public class ByteConverter extends AbstractNumberConverter<Byte>
NOTE: The CsvColumn.format()
is the same pattern used by DecimalFormat
and will be used in both
AbstractNumberConverter.javaToString(com.j256.simplecsv.processor.ColumnInfo<T>, T)
and AbstractNumberConverter.stringToJava(java.lang.String, int, int, com.j256.simplecsv.processor.ColumnInfo<T>, java.lang.String, com.j256.simplecsv.processor.ParseError)
methods.
Constructor and Description |
---|
ByteConverter() |
Modifier and Type | Method and Description |
---|---|
static ByteConverter |
getSingleton()
Get singleton for class.
|
protected Byte |
numberToValue(Number number)
Convert a number to the appropriate Java type.
|
protected Byte |
parseString(String value)
Parse a string into the appropriate Java type.
|
configure, isAlwaysTrimInput, isNeedsQuotes, javaToString, stringToJava
public static ByteConverter getSingleton()
protected Byte numberToValue(Number number)
AbstractNumberConverter
numberToValue
in class AbstractNumberConverter<Byte>
protected Byte parseString(String value) throws NumberFormatException
AbstractNumberConverter
parseString
in class AbstractNumberConverter<Byte>
NumberFormatException
This documentation content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.