org.jmonks.batch.io.flat
Class FixedWidthFlatFileFileSpec
java.lang.Object
org.jmonks.batch.io.FileSpec
org.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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FixedWidthFlatFileFileSpec
protected FixedWidthFlatFileFileSpec()
- Constructs the FixedWidthFlatFileFileSpec.
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()