com.ancientprogramming.fixedformat4j.format
Interface FixedFormatter<T>
- All Known Implementing Classes:
- AbstractDecimalFormatter, AbstractFixedFormatter, AbstractNumberFormatter, BigDecimalFormatter, BooleanFormatter, ByTypeFormatter, CharacterFormatter, DateFormatter, DoubleFormatter, FloatFormatter, IntegerFormatter, LongFormatter, StringFormatter
public interface FixedFormatter<T>
Formatter capable of transforming data to and from a string used in text records.
A concrete class is used together with the @Field annotation.
Example: @Field(offset = 1, length = 20, formatter = DateFormatter.class)
- Since:
- 1.0.0
- Author:
- Jacob von Eyben - http://www.ancientprogramming.com
parse
T parse(java.lang.String value,
FormatInstructions instructions)
throws FixedFormatException
- Throws:
FixedFormatException
format
java.lang.String format(T value,
FormatInstructions instructions)
throws FixedFormatException
- Throws:
FixedFormatException
Copyright © 2008 ancientprogramming.com. All Rights Reserved.