Class CompositeCodec
java.lang.Object
org.springframework.integration.codec.CompositeCodec
- 
Constructor SummaryConstructorsConstructorDescriptionCompositeCodec(Map<Class<?>, Codec> delegates, Codec defaultCodec) CompositeCodec(Codec defaultCodec) 
- 
Method SummaryModifier and TypeMethodDescription<T> TDecode an object of a given type.<T> Tdecode(InputStream inputStream, Class<T> type) Decode an object of a given type.byte[]Encode an object to a byte array.voidencode(Object object, OutputStream outputStream) Encode (encode) an object to an OutputStream.
- 
Constructor Details- 
CompositeCodec
- 
CompositeCodec
 
- 
- 
Method Details- 
encodeDescription copied from interface:CodecEncode (encode) an object to an OutputStream.- Specified by:
- encodein interface- Codec
- Parameters:
- object- the object to encode
- outputStream- the OutputStream
- Throws:
- IOException- if the operation fails
 
- 
encodeDescription copied from interface:CodecEncode an object to a byte array.- Specified by:
- encodein interface- Codec
- Parameters:
- object- the object to encode
- Returns:
- the bytes
- Throws:
- IOException- if the operation fails
 
- 
decodeDescription copied from interface:CodecDecode an object of a given type.- Specified by:
- decodein interface- Codec
- Type Parameters:
- T- the object's type
- Parameters:
- inputStream- the input stream containing the encoded object
- type- the object's class
- Returns:
- the object
- Throws:
- IOException- if the operation fails
 
- 
decodeDescription copied from interface:CodecDecode an object of a given type.- Specified by:
- decodein interface- Codec
- Type Parameters:
- T- the object's type
- Parameters:
- bytes- the byte array containing the encoded object
- type- the object's class
- Returns:
- the object
- Throws:
- IOException- if the operation fails
 
 
-