schwing.util
Class FileUtils

java.lang.Object
  |
  +--schwing.util.FileUtils

public class FileUtils
extends java.lang.Object

The FileUtils class contains static methods for working with files, file streams and the like.

Version:
$Revision: 1.1 $
Author:
Darryl L. Pierce

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

getResourceInputStream

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.

Parameters:
name - the resource name
Returns:
an InputStream
Throws:
java.io.FileNotFoundException - if the file wasn't found

main

public static void main(java.lang.String[] args)