public class StreamUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CLASSPATH_PREFIX |
static String |
FILE_PREFIX |
| Constructor and Description |
|---|
StreamUtils() |
| Modifier and Type | Method and Description |
|---|---|
static InputStream |
getInputStream(File basedir,
String name)
INTERNAL: Returns an input stream for the given url.
|
static InputStream |
getInputStream(String name)
INTERNAL: Same as getInputStream(null, name);
|
static URL |
getResource(String name)
INTERNAL: Returns an input stream for the given url.
|
public static final String CLASSPATH_PREFIX
public static final String FILE_PREFIX
public static InputStream getInputStream(String name) throws IOException
IOExceptionpublic static InputStream getInputStream(File basedir, String name) throws IOException
IOExceptionpublic static URL getResource(String name) throws IOException
IOException