com.ancientprogramming.fixedformat4j.format
Class FormatContext<T>

java.lang.Object
  extended by com.ancientprogramming.fixedformat4j.format.FormatContext<T>

public class FormatContext<T>
extends java.lang.Object

Contains context for loading and exporting fixedformat data. The context describes what kind of formatter to use, what datatype to convert and what offset to fetch data from.

Since:
1.0.0
Author:
Jacob von Eyben - http://www.ancientprogramming.com

Constructor Summary
FormatContext(int offset, java.lang.Class<T> dataType, java.lang.Class<? extends FixedFormatter> formatter)
           
 
Method Summary
 java.lang.Class<T> getDataType()
           
 java.lang.Class<? extends FixedFormatter> getFormatter()
           
 int getOffset()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FormatContext

public FormatContext(int offset,
                     java.lang.Class<T> dataType,
                     java.lang.Class<? extends FixedFormatter> formatter)
Method Detail

getOffset

public int getOffset()

getDataType

public java.lang.Class<T> getDataType()

getFormatter

public java.lang.Class<? extends FixedFormatter> getFormatter()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2008 ancientprogramming.com. All Rights Reserved.