|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.util.FileUtil
public class FileUtil
Common utility methods for working with Files.
We needed a place to refactor common File-processing idioms in JMRI code, so this class was created. It's more of a library of procedures than a real class, as (so far) all of the operations have needed no state information.
In particular, this is intended to provide Java 2 functionality on a Java 1.1.8 system, or at least try to fake it.
| Constructor Summary | |
|---|---|
FileUtil()
|
|
| Method Summary | |
|---|---|
static String |
getExternalFilename(String pName)
Find the resource file corresponding to a name. |
static String |
getPortableFilename(File file)
Convert a File object to our preferred storage form. |
static String |
getPortableFilename(String filename)
Convert a filename string to our preferred storage form. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileUtil()
| Method Detail |
|---|
public static String getExternalFilename(String pName)
pName - The name string, possibly starting with file: or resource:
public static String getPortableFilename(File file)
getExternalFilename(String pName).
Deprecated forms are not created.
file - File to be representedpublic static String getPortableFilename(String filename)
getExternalFilename(String pName).
Deprecated forms are not created.
filename - Filename to be represented
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||