public class Is24CsvFormat extends CsvFormat<Is24CsvParser,Is24CsvPrinter>
| Modifier and Type | Field and Description |
|---|---|
static String |
ENCODING
the encoding of this format
|
static String |
RECORD_SEPARATOR
the record separator of this format
|
static String |
VERSION
the implemented version of this format
|
| Constructor and Description |
|---|
Is24CsvFormat()
Create IS24-CSV format.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
getCountryCode(String country)
Returns a country code, as it is preferred by this format.
|
String |
getEncoding() |
protected Is24CsvParser |
newParser(org.apache.commons.csv.CSVParser parser) |
protected Is24CsvPrinter |
newPrinter(org.apache.commons.csv.CSVPrinter printer) |
static Boolean |
parseBoolean(String value) |
static Date |
parseDate(String value) |
static Calendar |
parseDateAsCalendar(String value) |
static BigDecimal |
parseDecimal(String value) |
static Integer |
parseInteger(String value) |
static Long |
parseLong(String value) |
static Number |
parseNumber(String value) |
static Number |
parseNumber(String value,
boolean integerOnly) |
static String |
printBoolean(Boolean value) |
static String |
printDate(Calendar value) |
static String |
printDate(Date value) |
static String |
printNumber(Number value,
int integerDigits) |
static String |
printNumber(Number value,
int integerDigits,
int fractionDigits) |
static String |
printString(String value) |
static String |
printString(String value,
int maxLength) |
public static final String VERSION
public static final String ENCODING
public static final String RECORD_SEPARATOR
public static String getCountryCode(String country)
country - country name to convertpublic String getEncoding()
getEncoding in class CsvFormat<Is24CsvParser,Is24CsvPrinter>protected Is24CsvParser newParser(org.apache.commons.csv.CSVParser parser)
newParser in class CsvFormat<Is24CsvParser,Is24CsvPrinter>protected Is24CsvPrinter newPrinter(org.apache.commons.csv.CSVPrinter printer)
newPrinter in class CsvFormat<Is24CsvParser,Is24CsvPrinter>public static Date parseDate(String value) throws ParseException
ParseExceptionpublic static Calendar parseDateAsCalendar(String value) throws ParseException
ParseExceptionpublic static BigDecimal parseDecimal(String value) throws NumberFormatException
NumberFormatExceptionpublic static Integer parseInteger(String value) throws NumberFormatException
NumberFormatExceptionpublic static Long parseLong(String value) throws NumberFormatException
NumberFormatExceptionpublic static Number parseNumber(String value) throws NumberFormatException
NumberFormatExceptionpublic static Number parseNumber(String value, boolean integerOnly) throws NumberFormatException
NumberFormatExceptionCopyright © 2016 OpenEstate. All rights reserved.