|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--schwing.util.FileUtils
The FileUtils
class contains static methods for working with files, file
streams and the like.
Method Summary | |
static java.io.InputStream |
getResourceInputStream(java.lang.String name)
Returns an input stream for the specified resource. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.io.InputStream getResourceInputStream(java.lang.String name) throws java.io.FileNotFoundException
Returns an input stream for the specified resource.
The CLASSPATH
is first searched, and then the local file system. If the
named resource is located, an input stream connected to the resource is returned. If the
resource is not found, an exception is thrown.
name
- the resource nameInputStream
java.io.FileNotFoundException
- if the file wasn't foundpublic static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |