|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectco.uk.hjcs.canyon.parsing.FixedLengthFieldFlatFileProcessor
public class FixedLengthFieldFlatFileProcessor
This class is responsible for the reading and creation of fixed length field text. It uses the field definitions it is given to determine how a line of text should be parsed or created. Any missing definitions are represented as blank spaces, or the padding character defined in the configuration.
| Field Summary |
|---|
| Fields inherited from interface co.uk.hjcs.canyon.parsing.FlatFileProcessor |
|---|
CLASS_ELEMENT_NAME, CLASS_ID_ELEMENT_NAME, CLASS_NAME_ATTRIBUTE, CLASS_TYPE_ATTRIBUTE_NAME, FIELD_ELEMENT_NAME, FIELD_NAME_ATTRIBUTE_NAME |
| Constructor Summary | |
|---|---|
FixedLengthFieldFlatFileProcessor(java.util.List<FieldDefinition> fields)
|
|
| Method Summary | |
|---|---|
java.lang.String |
createLine(FlatFileLine ffl)
convert the FlatFileLine details into the construct that the flat file is exepcting. |
FlatFileLine |
createLine(java.lang.String lineData)
Create a FlatFileLine object from a string of data |
FixedLengthFieldDefinition |
getField(java.lang.String fieldName)
Retrieves the defintion of a field by name |
java.util.Set<FieldDefinition> |
getFields()
Retrieves a Set of all the registered field definitions |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FixedLengthFieldFlatFileProcessor(java.util.List<FieldDefinition> fields)
| Method Detail |
|---|
public java.lang.String createLine(FlatFileLine ffl)
FlatFileProcessor
createLine in interface FlatFileProcessorffl - - the FlatFileLine to be turned into a String
public FixedLengthFieldDefinition getField(java.lang.String fieldName)
FlatFileProcessor
getField in interface FlatFileProcessorfieldName - - the name of the field
public java.util.Set<FieldDefinition> getFields()
FlatFileProcessor
getFields in interface FlatFileProcessorpublic FlatFileLine createLine(java.lang.String lineData)
FlatFileProcessor
createLine in interface FlatFileProcessorlineData - - the data to be used to create the FlatFileLine object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||