public class StreamFileDataLoadProvider extends Object implements DataLoadProvider<InputStream,File>
DataLoadProvider
that provides encoders and decoders for for obtaining a
cache file from InputStream
data.Constructor and Description |
---|
StreamFileDataLoadProvider() |
Modifier and Type | Method and Description |
---|---|
ResourceDecoder<File,File> |
getCacheDecoder()
Returns the
ResourceDecoder to use to decode the resource from the disk cache. |
ResourceEncoder<File> |
getEncoder()
Returns the
ResourceEncoder to use to write the decoded and transformed resource
to the disk cache. |
ResourceDecoder<InputStream,File> |
getSourceDecoder()
Returns the
ResourceDecoder to use to decode the resource from the original data. |
Encoder<InputStream> |
getSourceEncoder()
Returns the
Encoder to use to write the original data to the disk cache. |
public ResourceDecoder<File,File> getCacheDecoder()
DataLoadProvider
ResourceDecoder
to use to decode the resource from the disk cache.getCacheDecoder
in interface DataLoadProvider<InputStream,File>
public ResourceDecoder<InputStream,File> getSourceDecoder()
DataLoadProvider
ResourceDecoder
to use to decode the resource from the original data.getSourceDecoder
in interface DataLoadProvider<InputStream,File>
public Encoder<InputStream> getSourceEncoder()
DataLoadProvider
Encoder
to use to write the original data to the disk cache.getSourceEncoder
in interface DataLoadProvider<InputStream,File>
public ResourceEncoder<File> getEncoder()
DataLoadProvider
ResourceEncoder
to use to write the decoded and transformed resource
to the disk cache.getEncoder
in interface DataLoadProvider<InputStream,File>