com.google.visualization.datasource.base
Class TextFormat
java.lang.Object
java.text.Format
com.ibm.icu.text.UFormat
com.google.visualization.datasource.base.TextFormat
- All Implemented Interfaces:
- Serializable, Cloneable
public class TextFormat
- extends com.ibm.icu.text.UFormat
A UFormat that performs (dummy) formatting and parsing of text (string) values.
This class is required only to be consistent with the UFormat API, its methods do nothing.
- Author:
- Hillel M.
- See Also:
- Serialized Form
| Methods inherited from class com.ibm.icu.text.UFormat |
getLocale |
TextFormat
public TextFormat()
format
public StringBuffer format(Object obj,
StringBuffer appendTo,
FieldPosition pos)
- Formats a TextValue and appends the result to a StringBuffer.
- Specified by:
format in class Format
- Parameters:
obj - The object to format.appendTo - The StringBuffer to which the formatted string is appended.pos - A FieldPosition parameter not used in this case.
- Returns:
- A StringBuffer with the formatted string for this object.
parseObject
public Object parseObject(String source,
ParsePosition pos)
- Parse a string into a TextValue.
If this method is used to parse an empty string and it is called via
Format.parseObject(Object) a ParseException is thrown.
- Specified by:
parseObject in class Format
- Parameters:
source - The string to parse from.pos - Marks the end of the parsing or 0 if the parsing failed.
- Returns:
- A BooleanValue for the parsed string.
- Throws:
NullPointerException - if pos is null or source is null.
Copyright © 2012 Google. All Rights Reserved.