1package com.bumptech.glide.load.resource;
2
3import com.bumptech.glide.load.ResourceDecoder;
4import com.bumptech.glide.load.engine.Resource;
5
6import java.io.IOException;
7
8public class NullDecoder<T, Z> implements ResourceDecoder<T, Z> {
9    private static final NullDecoder NULL_DECODER = new NullDecoder();
10
11    @SuppressWarnings("unchecked")
12    public static <T, Z> NullDecoder<T, Z> get() {
13        return NULL_DECODER;
14    }
15
16    @Override
17    public Resource<Z> decode(T source, int width, int height) throws IOException {
18        return null;
19    }
20
21    @Override
22    public String getId() {
23        return "";
24    }
25}
26