|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.util.csv.CSVFormat
public class CSVFormat
Specifies a CSV format. This allows you to determine if a decimal point or decimal comma is uses. It also specifies the character that should be used to separate numbers.
| Field Summary | |
|---|---|
static CSVFormat |
DECIMAL_COMMA
Use a decimal comma, and a semicolon to separate numbers. |
static CSVFormat |
DECIMAL_POINT
Use a decimal point, and a comma to separate numbers. |
static CSVFormat |
EG_FORMAT
EG files, internally use a decimal point and comma separator. |
static CSVFormat |
ENGLISH
Decimal point is typically used in English speaking counties. |
| Constructor Summary | |
|---|---|
CSVFormat()
By default use USA conventions. |
|
CSVFormat(char decimal,
char separator)
Construct a CSV format with he specified decimal and separator characters. |
|
| Method Summary | |
|---|---|
String |
format(double d,
int digits)
Format the specified number to a string with the specified number of fractional digits. |
char |
getDecimal()
|
static char |
getDecimalCharacter()
Get the decimal character currently in use by the computer's default location. |
NumberFormat |
getNumberFormatter()
|
char |
getSeparator()
|
double |
parse(String str)
Parse the specified string to a double. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final CSVFormat DECIMAL_POINT
public static final CSVFormat DECIMAL_COMMA
public static final CSVFormat ENGLISH
public static final CSVFormat EG_FORMAT
| Constructor Detail |
|---|
public CSVFormat()
public CSVFormat(char decimal,
char separator)
decimal - The decimal character.separator - The separator character.| Method Detail |
|---|
public static char getDecimalCharacter()
public String format(double d,
int digits)
d - The number to format.digits - The number of fractional digits.
public char getDecimal()
public NumberFormat getNumberFormatter()
public char getSeparator()
public double parse(String str)
str - The string to parse.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||