org.milyn.javabean
Interface DataEncoder

All Superinterfaces:
DataDecoder, Serializable
All Known Implementing Classes:
BigDecimalDecoder, BigIntegerDecoder, DateDecoder, DoubleDecoder, FloatDecoder, IntegerDecoder, LongDecoder, NumberDecoder, ShortDecoder, SqlDateDecoder, SqlTimeDecoder, SqlTimestampDecoder, XMLGregorianCalendarDecoder

public interface DataEncoder
extends DataDecoder

Data encoder.

This is an extension interface for adding encode capability to a DataDecoder implementation.

Author:
tom.fennelly@gmail.com
See Also:
DataDecoder

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.milyn.javabean.DataDecoder
DataDecoder.Factory
 
Method Summary
 String encode(Object object)
          Encode an object to a string.
 
Methods inherited from interface org.milyn.javabean.DataDecoder
decode
 

Method Detail

encode

String encode(Object object)
              throws DataDecodeException
Encode an object to a string.

Parameters:
object - The object to be encoded.
Returns:
The encoded object.
Throws:
DataDecodeException - Error encoding object.


Copyright © 2018. All rights reserved.