com.j256.simplemagic.entries
Class Formatter
java.lang.Object
com.j256.simplemagic.entries.Formatter
public class Formatter
- extends Object
Formatter that handles the C %0.2f type formats appropriately. I would have used the Formatter
but
you can't pre-parse those for some stupid reason. Also, I needed this to be compatible with the printf(3) C formats.
- Author:
- graywatson
Constructor Summary |
Formatter(String formatString)
This takes a format string, breaks it up into prefix, %-thang, and suffix. |
FINAL_PATTERN_CHARS
public static final String FINAL_PATTERN_CHARS
- See Also:
- Constant Field Values
PATTERN_MODIFIERS
public static final String PATTERN_MODIFIERS
- See Also:
- Constant Field Values
Formatter
public Formatter(String formatString)
- This takes a format string, breaks it up into prefix, %-thang, and suffix.
format
public void format(StringBuilder sb,
Object value)
- Formats the extracted value assigned and returns the associated string
toString
public String toString()
- Overrides:
toString
in class Object
This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.