|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
convert
method during processing
ConfigurationReader class is used to initialize Flatworm with an XML configuration file which
describes the format and conversion options to be applied to the input file to produce output beans.- ConfigurationReader() -
Constructor for class com.blackbear.flatworm.ConfigurationReader
-
- ConversionHelper - Class in com.blackbear.flatworm
- The
ConversionHelper was created to seperate formatting responsibility into a seperate class.- ConversionHelper() -
Constructor for class com.blackbear.flatworm.ConversionHelper
-
- ConversionOption - Class in com.blackbear.flatworm
- Bean class used to store the values from the Conversion-Option XML tag
- convert(String, String, HashMap, String) -
Method in class com.blackbear.flatworm.ConversionHelper
-
- convert(String, Object, HashMap, String) -
Method in class com.blackbear.flatworm.ConversionHelper
-
- convertBigDecimal(String, HashMap) -
Method in class com.blackbear.flatworm.converters.CoreConverters
- Conversion function for
BigDecimal
, returns the source string with padding removed if requested,
converted into a big decimal.
- convertBigDecimal(Object, HashMap) -
Method in class com.blackbear.flatworm.converters.CoreConverters
-
- convertChar(String, HashMap) -
Method in class com.blackbear.flatworm.converters.CoreConverters
- Conversion function for
String
, returns the source string with padding removed if requested.
- convertChar(Object, HashMap) -
Method in class com.blackbear.flatworm.converters.CoreConverters
- Object->String conversion function.
- convertDate(String, HashMap) -
Method in class com.blackbear.flatworm.converters.CoreConverters
- Conversion function for
Date
, returns the source string with padding removed if requested,
converted into a date.
- convertDate(Object, HashMap) -
Method in class com.blackbear.flatworm.converters.CoreConverters
- Date->String conversion function.
- convertDecimal(String, HashMap) -
Method in class com.blackbear.flatworm.converters.CoreConverters
- Conversion function for
Double
, returns the source string with padding removed if requested,
converted into a double.
- convertDecimal(Object, HashMap) -
Method in class com.blackbear.flatworm.converters.CoreConverters
-
- convertInteger(String, HashMap) -
Method in class com.blackbear.flatworm.converters.CoreConverters
- Conversion function for
Integer
, returns the source string with padding removed if requested,
converted into a integer.
- convertInteger(Object, HashMap) -
Method in class com.blackbear.flatworm.converters.CoreConverters
-
- convertLong(String, HashMap) -
Method in class com.blackbear.flatworm.converters.CoreConverters
- Conversion function for
Long
, returns the source string with padding removed if requested,
converted into a long.
- convertLong(Object, HashMap) -
Method in class com.blackbear.flatworm.converters.CoreConverters
-
- CoreConverters - Class in com.blackbear.flatworm.converters
CoreConverters
contains methods to convert the most commonly encountered text types to native Java
types.- CoreConverters() -
Constructor for class com.blackbear.flatworm.converters.CoreConverters
-
FileFormat
is the point of entry into the Flatworm parser.<conversion-option name="format" value="yyyy-MM-dd"/>
BufferedReader
, reads sufficient lines to parse a record, and returns the
beans created.
<conversion-option name="justify" value="right"/>
loadConfigurationFile
takes an XML configuration file, and returns a FileFormat
object, which can be used to parse an input file into beans.
MatchedRecord
is used to return the record data from a FileFormat
record request.split
divides a string into many strings based on a delimiter The main difference between this
split and the one that comes with Java is this one will ignore delimiters that are within quoted fields
NOTE: Delimiter will be ignored once chrQuote is encountered.
<conversion-option name="strip-chars" value="non-numeric"/>
<conversion-option name="substring" value="1,10"/>
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |