|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IStringTranslator
Interface for translators that convert to/from string format.
ITranslator
,
FormatTranslator
Nested Class Summary | |
---|---|
static class |
IStringTranslator.FromString
Adapts a IStringTranslator to the one-way ITranslator
interface. |
static class |
IStringTranslator.ToString
Adapts a IStringTranslator to the one-way ITranslator
interface. |
Method Summary | |
---|---|
Object |
fromString(String string)
Convert/parse a string into the object type supported by this converter. |
String |
toString(Object value)
Convert a value to a string. |
Method Detail |
---|
String toString(Object value) throws IllegalArgumentException
value
- The value to convert. Null is not guaranteed to be
valid.
IllegalArgumentException
- if value is an object type
understood by the converter.Object fromString(String string) throws InvalidFormatException
string
- The string to convert.
InvalidFormatException
- if the string is not in a format
parsable by the converter.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |