|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gicentre.io.DbaseFileWriter.FieldFormatter
public static class DbaseFileWriter.FieldFormatter
Utility for formatting Dbase fields.
| Constructor Summary | |
|---|---|
DbaseFileWriter.FieldFormatter()
Creates the field formatter. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DbaseFileWriter.FieldFormatter()
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||