blob: 4b521c8f20f385e29ee1c38eaff1c0bc9dd6d826 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package com.davemorrissey.labs.subscaleview.decoder;
import java.lang.reflect.InvocationTargetException;
/**
* Interface for {@link ImageDecoder} and {@link ImageRegionDecoder} factories.
* @param <T> the class of decoder that will be produced.
*/
public interface DecoderFactory<T> {
/**
* Produce a new instance of a decoder with type {@link T}.
* @return a new instance of your decoder.
* @throws IllegalAccessException if the factory class cannot be instantiated.
* @throws InstantiationException if the factory class cannot be instantiated.
* @throws NoSuchMethodException if the factory class cannot be instantiated.
* @throws InvocationTargetException if the factory class cannot be instantiated.
*/
T make() throws IllegalAccessException, InstantiationException, NoSuchMethodException, InvocationTargetException;
}
|