|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.sape.carbon.core.config.type.handlers.ByteTypeHandler
Parses and formats between Strings and Bytes.
Copyright 2002 Sapient
| Constructor Summary | |
ByteTypeHandler()
|
|
| Method Summary | |
Object |
toObject(Class type,
String stringValue)
Parses a string into a Byte object. |
String |
toString(Object objectValue)
Formats an Byte into a String value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ByteTypeHandler()
| Method Detail |
public Object toObject(Class type,
String stringValue)
throws TypeConversionException
Parses a string into a Byte object.
toObject in interface ConfigurationTypeHandlertype - should be a StringstringValue - the String representation of the requested Byte
TypeConversionException - when the string does not represent
a valid Bytepublic String toString(Object objectValue)
Formats an Byte into a String value.
toString in interface ConfigurationTypeHandlerobjectValue - the Byte to be formatted
ClassCastException - when past an object other than a Byte
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||