|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjwo.utils.dbase.DbaseFileWriter.FieldFormatter
public static class DbaseFileWriter.FieldFormatter
Utility for formatting Dbase fields.
| Constructor Summary | |
|---|---|
DbaseFileWriter.FieldFormatter()
Creates the field formatter. |
|
| Method Summary | |
|---|---|
String |
getFieldString(Date d)
Reports the field string representing the given date. |
String |
getFieldString(int size,
int decimalPlaces,
Number n)
Reports the field string representation of a number to a given number of decimal places. |
String |
getFieldString(int size,
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 String getFieldString(int size,
String s)
size - Size to set the field string to be.s - String to set to the given size.
public String getFieldString(Date d)
d - Date to represent.
public String getFieldString(int size,
int decimalPlaces,
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 | ||||||||