|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TypeConverter
A pluggable strategy to be able to convert objects to different types such as to and from String, InputStream/OutputStream, Reader/Writer, Document, byte[], ByteBuffer etc
| Method Summary | ||
|---|---|---|
|
convertTo(Class<T> type,
Exchange exchange,
Object value)
Converts the value to the specified type in the context of an exchange Used when conversion requires extra information from the current exchange (such as encoding). |
|
|
convertTo(Class<T> type,
Object value)
Converts the value to the specified type |
|
| Method Detail |
|---|
<T> T convertTo(Class<T> type,
Object value)
type - the requested typevalue - the value to be converted
NoTypeConversionAvailableException - if conversion not possible
<T> T convertTo(Class<T> type,
Exchange exchange,
Object value)
type - the requested typeexchange - the current exchangevalue - the value to be converted
NoTypeConversionAvailableException} - if conversion not possible
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||