public class ResourceUtil
extends java.lang.Object
Constructor | Description |
---|---|
ResourceUtil() |
Modifier and Type | Method | Description |
---|---|---|
static java.io.InputStream |
openBundledFile(java.lang.String fileName) |
Return an input stream coming from a file located with this class
in the filesystem or in a jar file.
|
static java.util.Scanner |
openFileScanner(java.lang.String fileName) |
Create and return a Scanner coming from a text file located with this
class.
|
public static java.io.InputStream openBundledFile(java.lang.String fileName)
fileName
- The name of a file located with this ResourceUtil class.public static java.util.Scanner openFileScanner(java.lang.String fileName)
fileName
- The name of a text file accompanying this class.