org.jmonks.batch.io.flat
Class DelimitedFlatFileFileSpec

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

public class DelimitedFlatFileFileSpec
extends FileSpec

DelimitedFlatFileFileSpec represents the file spec defines the flat file where all the fields in the records delimited with a particular character or value. This file spec doesn't require any special attributes other than file-type attribute, which should be "delimited-flat". Here is a sample file spec...

      <file-spec file-type="delimited-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 DelimitedFlatFileFileSpec()
          Constructs the DelimitedFlatFileFileSpec.
 
Method Summary
static FileSpec createDelimitedFlatFileFileSpec(org.w3c.dom.Element fileSpecElement)
          Factory method create the delimited 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

DelimitedFlatFileFileSpec

protected DelimitedFlatFileFileSpec()
Constructs the DelimitedFlatFileFileSpec.

Method Detail

createDelimitedFlatFileFileSpec

public static FileSpec createDelimitedFlatFileFileSpec(org.w3c.dom.Element fileSpecElement)
Factory method create the delimited 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 DelimitedFlatFileFileSpec.
Throws:
FileSpecException - If more than one record spec is configured.

toString

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