com.ancientprogramming.fixedformat4j.format.impl
Class FixedFormatManagerImpl
java.lang.Object
com.ancientprogramming.fixedformat4j.format.impl.FixedFormatManagerImpl
- All Implemented Interfaces:
- FixedFormatManager
public class FixedFormatManagerImpl
- extends java.lang.Object
- implements FixedFormatManager
Load and export data to and from fixedformat
- Since:
- 1.0.0
- Author:
- Jacob von Eyben - http://www.ancientprogramming.com
|
Method Summary |
|
export(java.lang.String existingData,
T fixedFormatRecord)
|
|
export(T fixedFormatRecord)
|
|
load(java.lang.Class<T> fixedFormatRecordClass,
java.lang.String data)
Create an instance of the fixedFormatClass and load the data string into the object according to the annotations. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FixedFormatManagerImpl
public FixedFormatManagerImpl()
load
public <T> T load(java.lang.Class<T> fixedFormatRecordClass,
java.lang.String data)
- Description copied from interface:
FixedFormatManager
- Create an instance of the fixedFormatClass and load the data string into the object according to the annotations.
- Specified by:
load in interface FixedFormatManager
- Parameters:
fixedFormatRecordClass - the class to instanciatedata - the data to load
- Returns:
- an object loaded with the fixedformat data
export
public <T> java.lang.String export(java.lang.String existingData,
T fixedFormatRecord)
- Specified by:
export in interface FixedFormatManager
export
public <T> java.lang.String export(T fixedFormatRecord)
- Specified by:
export in interface FixedFormatManager
Copyright © 2008 ancientprogramming.com. All Rights Reserved.