org.apache.camel
Interface TypeConverter
- All Known Implementing Classes:
- ArrayTypeConverter, DefaultTypeConverter, InstanceMethodTypeConverter, PropertyEditorTypeConverter, StaticMethodTypeConverter, ToStringTypeConverter
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
- Version:
- $Revision: 532316 $
convertTo
<T> T convertTo(Class<T> type,
Object value)
- Converts the value to the specified type
- Parameters:
type
- the requested typevalue
- the value to be converted
- Returns:
- the converted value or null if it can not be converted
Copyright © 2007 Apache Software Foundation. All Rights Reserved.