public static class DbaseFileWriter.FieldFormatter
extends java.lang.Object
Constructor and Description |
---|
FieldFormatter()
Creates the field formatter.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFieldString(java.util.Date d)
Reports the field string representing the given date.
|
java.lang.String |
getFieldString(int size,
int decimalPlaces,
java.lang.Number n)
Reports the field string representation of a number to a given number of decimal places.
|
java.lang.String |
getFieldString(int size,
java.lang.String s)
Reports the field string set to the given size.
|
public java.lang.String getFieldString(int size, java.lang.String s)
size
- Size to set the field string to be.s
- String to set to the given size.public java.lang.String getFieldString(java.util.Date d)
d
- Date to represent.public java.lang.String getFieldString(int size, int decimalPlaces, java.lang.Number n)
size
- Size to set the string representation of the number.decimalPlaces
- Number of decimal places to report the number.n
- The number to represent as a field string.