|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.ffo.FixedFormatWritter
public class FixedFormatWritter
Simple class to help writing fixed sized fields.
| Constructor Summary | |
|---|---|
FixedFormatWritter(java.io.Writer writer)
|
|
| Method Summary | |
|---|---|
java.io.Writer |
getWriter()
|
void |
write(java.util.Calendar cal)
Warning: this method uses intenally SimpleDateFormat with all its limitations |
void |
write(java.lang.Double field,
int integerCount,
int decimalCount)
Write the double with specified amount of characters for integer part and decimal part. |
void |
write(java.lang.Integer val,
int len)
|
void |
write(int val,
int len)
|
void |
write(java.lang.Long val,
int len)
|
void |
write(java.lang.String fmt,
java.util.Calendar cal)
Warning: this method uses intenally SimpleDateFormat with all its limitations |
void |
write(java.lang.String val,
int len)
|
void |
write(java.lang.String val,
int len,
char pad,
boolean alignRight)
Writes the value with given format parameters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FixedFormatWritter(java.io.Writer writer)
| Method Detail |
|---|
public void write(java.lang.Integer val,
int len)
throws java.io.IOException
java.io.IOException
public void write(int val,
int len)
throws java.io.IOException
java.io.IOException
public void write(java.lang.Long val,
int len)
throws java.io.IOException
java.io.IOException
public void write(java.lang.String val,
int len)
throws java.io.IOException
java.io.IOException
public void write(java.lang.String val,
int len,
char pad,
boolean alignRight)
throws java.io.IOException
val - the value to writelen - length to use for the field, must be equal or greater than val.length()pad - the padding character to usealignRight - flag to align the value to the right (otherwise is left)
java.io.IOException
public void write(java.util.Calendar cal)
throws java.io.IOException
cal -
java.io.IOException
public void write(java.lang.Double field,
int integerCount,
int decimalCount)
throws java.io.IOException
field - the value to formatintegerCount - decimalCount -
java.io.IOException
public void write(java.lang.String fmt,
java.util.Calendar cal)
throws java.io.IOException
fmt - the format string to pass to simple date formatcal -
java.io.IOExceptionpublic java.io.Writer getWriter()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||