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()
Returns the encoding of created CSV data.
|
protected Is24CsvParser |
newParser(org.apache.commons.csv.CSVParser parser)
Creates a new
CsvParser for a CSVParser. |
protected Is24CsvPrinter |
newPrinter(org.apache.commons.csv.CSVPrinter printer)
Creates a new
CsvPrinter for a CSVPrinter. |
static Boolean |
parseBoolean(String value) |
static Date |
parseDate(String value) |
static Calendar |
parseDateAsCalendar(String value) |
static Double |
parseDouble(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()
CsvFormatgetEncoding in class CsvFormat<Is24CsvParser,Is24CsvPrinter>protected Is24CsvParser newParser(org.apache.commons.csv.CSVParser parser)
CsvFormatCsvParser for a CSVParser.newParser in class CsvFormat<Is24CsvParser,Is24CsvPrinter>parser - the CSV parser from
commons-csvprotected Is24CsvPrinter newPrinter(org.apache.commons.csv.CSVPrinter printer)
CsvFormatCsvPrinter for a CSVPrinter.newPrinter in class CsvFormat<Is24CsvParser,Is24CsvPrinter>printer - the CSV printer from
commons-csvpublic static Date parseDate(String value) throws ParseException
ParseExceptionpublic static Calendar parseDateAsCalendar(String value) throws ParseException
ParseExceptionpublic static Double parseDouble(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 © 2015 OpenEstate. All rights reserved.