|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.codehaus.spice.converter.AbstractConverter | +--org.codehaus.spice.converter.lib.StringToByteConverter
String to Byte converter.
Hexadecimal numbers begin with 0x, Octal numbers begin with 0o and binary numbers begin with 0b, all other values are assumed to be decimal.
Constructor Summary | |
StringToByteConverter()
Construct the converter. |
|
StringToByteConverter(Byte defaultValue)
Construct the converter with a default value. |
Method Summary | |
Object |
convert(Object object,
Object context)
Converts a String to a Byte. |
Methods inherited from class org.codehaus.spice.converter.AbstractConverter |
convert, noConvert |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StringToByteConverter()
public StringToByteConverter(Byte defaultValue)
defaultValue
- the default valueMethod Detail |
public Object convert(Object object, Object context) throws ConverterException
convert
in class AbstractConverter
object
- the original object to convertcontext
- the context in which to convert object (unused)
ConverterException
- if error converting object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |