public class ResourceEncoderRegistry extends Object
ResourceEncoder
s capable of encoding arbitrary resource
types.Constructor and Description |
---|
ResourceEncoderRegistry() |
Modifier and Type | Method and Description |
---|---|
<Z> void |
add(Class<Z> resourceClass,
ResourceEncoder<Z> encoder) |
<Z> ResourceEncoder<Z> |
get(Class<Z> resourceClass) |
public <Z> void add(Class<Z> resourceClass, ResourceEncoder<Z> encoder)
@Nullable public <Z> ResourceEncoder<Z> get(Class<Z> resourceClass)