|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.taco.text.AbstractStringToObjectConverter
com.taco.text.StringToCharacterConverter
public final class StringToCharacterConverter
A string to object converter that converts strings into instances of
Character
. Optional single quotes are ignored. If the string
consists of just a single character, the character is returned. Otherwise,
the string is interpreted as an escape sequence which is unescaped and
returned.
Field Summary | |
---|---|
static StringToCharacterConverter |
instance
The singleton instance of this class. |
Method Summary | |
---|---|
java.lang.Object |
toObject(java.lang.String s)
|
Methods inherited from class com.taco.text.AbstractStringToObjectConverter |
---|
map |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final StringToCharacterConverter instance
Method Detail |
---|
public java.lang.Object toObject(java.lang.String s) throws java.text.ParseException
toObject
in interface IStringToObjectConverter
java.text.ParseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |