D - the data item that can be writtenO - the output resource that can be supplied in order to convert data to it@Spi public interface ConversionHandler<D,O> extends Handler
Handler that enables convert functionality over a lump of data.| Modifier and Type | Method and Description | 
|---|---|
boolean | 
canConvert(Object data,
          Object outputResource)
Determine whether this handler can convert the supplied data. 
 | 
void | 
convert(D data,
       O out)
Converts data from a data item into some resource. 
 | 
accept, addListener, getListeners, removeListenerboolean canConvert(Object data, Object outputResource)
data - the data that needs to be writtenoutputResource - the output resource the will be written tovoid convert(D data, O out) throws ConversionException
data - the data model object that information should be written fromout - the resource that data can be converted toConversionException - if data in the buffer could not be convertedCopyright © 2014. All rights reserved.