com.ancientprogramming.fixedformat4j.format.impl
Class FixedFormatManagerImpl

java.lang.Object
  extended by 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

Constructor Summary
FixedFormatManagerImpl()
           
 
Method Summary
<T> java.lang.String
export(java.lang.String existingData, T fixedFormatRecord)
           
<T> java.lang.String
export(T fixedFormatRecord)
           
<T> T
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
 

Constructor Detail

FixedFormatManagerImpl

public FixedFormatManagerImpl()
Method Detail

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 instanciate
data - 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.