|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.joda.time.format.FormatUtils
public class FormatUtils
Utility methods used by formatters.
FormatUtils is thread-safe and immutable.
| Method Summary | |
|---|---|
static void |
appendPaddedInteger(StringBuffer buf,
int value,
int size)
Converts an integer to a string, prepended with a variable amount of '0' pad characters, and appends it to the given buffer. |
static void |
appendPaddedInteger(StringBuffer buf,
long value,
int size)
Converts an integer to a string, prepended with a variable amount of '0' pad characters, and appends it to the given buffer. |
static void |
appendUnpaddedInteger(StringBuffer buf,
int value)
Converts an integer to a string, and appends it to the given buffer. |
static void |
appendUnpaddedInteger(StringBuffer buf,
long value)
Converts an integer to a string, and appends it to the given buffer. |
static int |
calculateDigitCount(long value)
Calculates the number of decimal digits for the given value, including the sign. |
static void |
writePaddedInteger(Writer out,
int value,
int size)
Converts an integer to a string, prepended with a variable amount of '0' pad characters, and writes it to the given writer. |
static void |
writePaddedInteger(Writer out,
long value,
int size)
Converts an integer to a string, prepended with a variable amount of '0' pad characters, and writes it to the given writer. |
static void |
writeUnpaddedInteger(Writer out,
int value)
Converts an integer to a string, and writes it to the given writer. |
static void |
writeUnpaddedInteger(Writer out,
long value)
Converts an integer to a string, and writes it to the given writer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void appendPaddedInteger(StringBuffer buf,
int value,
int size)
This method is optimized for converting small values to strings.
buf - receives integer converted to a stringvalue - value to convert to a stringsize - minumum amount of digits to append
public static void appendPaddedInteger(StringBuffer buf,
long value,
int size)
This method is optimized for converting small values to strings.
buf - receives integer converted to a stringvalue - value to convert to a stringsize - minumum amount of digits to append
public static void writePaddedInteger(Writer out,
int value,
int size)
throws IOException
This method is optimized for converting small values to strings.
out - receives integer converted to a stringvalue - value to convert to a stringsize - minumum amount of digits to append
IOException
public static void writePaddedInteger(Writer out,
long value,
int size)
throws IOException
This method is optimized for converting small values to strings.
out - receives integer converted to a stringvalue - value to convert to a stringsize - minumum amount of digits to append
IOException
public static void appendUnpaddedInteger(StringBuffer buf,
int value)
This method is optimized for converting small values to strings.
buf - receives integer converted to a stringvalue - value to convert to a string
public static void appendUnpaddedInteger(StringBuffer buf,
long value)
This method is optimized for converting small values to strings.
buf - receives integer converted to a stringvalue - value to convert to a string
public static void writeUnpaddedInteger(Writer out,
int value)
throws IOException
This method is optimized for converting small values to strings.
out - receives integer converted to a stringvalue - value to convert to a string
IOException
public static void writeUnpaddedInteger(Writer out,
long value)
throws IOException
This method is optimized for converting small values to strings.
out - receives integer converted to a stringvalue - value to convert to a string
IOExceptionpublic static int calculateDigitCount(long value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||