org.jmonks.batch.io.flat
Class FixedWidthFlatFileFileSpec

java.lang.Object
  extended byorg.jmonks.batch.io.FileSpec
      extended byorg.jmonks.batch.io.flat.FixedWidthFlatFileFileSpec

public class FixedWidthFlatFileFileSpec
extends FileSpec

FixedWidthFlatFileFileSpec represents the file spec defines the flat file where each different kind of record starts with a particular value and the fields in each record will have start and end position. This file-spec doesn't require any special attributes other than file-type, which should be "fixed-width-flat". Here is a sample file spec...

      <file-spec file-type="fixed-width-flat">
          <!-- record specs will follow here -->
      </file-spec>
  

Since:
1.0
Version:
1.0
Author:
Suresh Pragada

Field Summary
 
Fields inherited from class org.jmonks.batch.io.FileSpec
FILE_SPEC_TAG_NAME, FILE_TYPE_ATTRIB_NAME, fileType, recordSpecMap
 
Constructor Summary
protected FixedWidthFlatFileFileSpec()
          Constructs the FixedWidthFlatFileFileSpec.
 
Method Summary
static FileSpec createFixedWidthFlatFileFileSpec(org.w3c.dom.Element fileSpecElement)
          Factory method create the fixed width flat file spec object from the given DOM Element representing the file-spec element.
 java.lang.String toString()
           
 
Methods inherited from class org.jmonks.batch.io.FileSpec
addRecordSpec, createFileSpec, getFileType, getRecordSpec, getRecordSpecs, isValidRecordType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FixedWidthFlatFileFileSpec

protected FixedWidthFlatFileFileSpec()
Constructs the FixedWidthFlatFileFileSpec.

Method Detail

createFixedWidthFlatFileFileSpec

public static FileSpec createFixedWidthFlatFileFileSpec(org.w3c.dom.Element fileSpecElement)
Factory method create the fixed width flat file spec object from the given DOM Element representing the file-spec element.

Parameters:
fileSpecElement - DOM Element representing the file-spec element.
Returns:
Returns the instance of FixedWidthFlatFileFileSpec.
Throws:
FileSpecException - If two record specs has the same value for the starts-with and record-type attributes.

toString

public java.lang.String toString()
See Also:
Object.toString()