|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.yestech.lib.io.FileLocator
public final class FileLocator
This class will find any file located in the users classpath.
| Method Summary | |
|---|---|
static FileLocator |
getFile()
Creates a new FileLocator |
java.net.URL |
locateFile(java.lang.String file)
Locates a file in the classes classpath and returns the URL associated with the file. |
java.net.URL |
locateFile(java.lang.String file,
java.lang.String extension)
Locates a file in the classes classpath and returns the URL associated with the file. |
java.io.InputStream |
locateFileAsStream(java.lang.String file)
Locates a file in the classes classpath and returns the InputStream associated with the file. |
java.io.InputStream |
locateFileAsStream(java.lang.String file,
java.lang.String extension)
Locates a file in the classes classpath and returns the InputStream associated with the file. |
java.net.URL |
locatePropertiesFile(java.lang.String file)
Locates a properties file in the classes classpath and returns the URL associated with the file. |
java.io.InputStream |
locatePropertiesFileAsStream(java.lang.String file)
Locates a properties file in the classes classpath and returns the InputStream associated with the file. |
java.net.URL |
locateXMLFile(java.lang.String file)
Locates an xml file in the classes classpath and returns the URL associated with the file. |
java.io.InputStream |
locateXMLFileAsStream(java.lang.String file)
Locates an xml file in the classes classpath and returns the InputStream associated with the file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public java.net.URL locatePropertiesFile(java.lang.String file)
file - the file to locate
public java.net.URL locateXMLFile(java.lang.String file)
file - the file to locate
public java.net.URL locateFile(java.lang.String file,
java.lang.String extension)
file - the file to locateextension - the extension of the file to locate
public java.net.URL locateFile(java.lang.String file)
file - the file to locate
public java.io.InputStream locatePropertiesFileAsStream(java.lang.String file)
file - the file to locate
public java.io.InputStream locateXMLFileAsStream(java.lang.String file)
file - the file to locate
public java.io.InputStream locateFileAsStream(java.lang.String file,
java.lang.String extension)
file - the file to locateextension - the extension of the file to locate
public java.io.InputStream locateFileAsStream(java.lang.String file)
file - the file to locate
public static FileLocator getFile()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||