public final class FileReferenceUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> java.io.InputStream |
open(FileReference ref,
java.lang.Class<T> clazz)
Open an input stream given a file reference.
|
static java.io.InputStream |
open(FileReference ref,
MaskingComponent component) |
public static <T> java.io.InputStream open(FileReference ref, java.lang.Class<T> clazz) throws java.io.IOException, java.net.URISyntaxException, NotSupportedException
T
- Ignoredref
- The reference to open.clazz
- A class from the package to search when opening JAR resources.java.io.IOException
- When the file can't be openedjava.net.URISyntaxException
- When the URI syntax is badNotSupportedException
- When the URI type isn't supportedpublic static java.io.InputStream open(FileReference ref, MaskingComponent component) throws java.io.IOException, java.net.URISyntaxException, NotSupportedException
java.io.IOException
java.net.URISyntaxException
NotSupportedException