Z
- The type of the resource that will be transcoded from and to.public class UnitTranscoder<Z> extends Object implements ResourceTranscoder<Z,Z>
ResourceTranscoder
that simply returns the given resource.Constructor and Description |
---|
UnitTranscoder() |
Modifier and Type | Method and Description |
---|---|
static <Z> ResourceTranscoder<Z,Z> |
get() |
Resource<Z> |
transcode(Resource<Z> toTranscode,
Options options)
Transcodes the given resource to the new resource type and returns the new resource.
|
public static <Z> ResourceTranscoder<Z,Z> get()
public Resource<Z> transcode(Resource<Z> toTranscode, Options options)
ResourceTranscoder
transcode
in interface ResourceTranscoder<Z,Z>
toTranscode
- The resource to transcode.