|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.FileUtils
public class FileUtils
Static file-handling utility methods.
| Constructor Summary | |
|---|---|
FileUtils()
|
|
| Method Summary | |
|---|---|
static void |
abort(java.lang.Exception x)
Lists the stack trace for the given exception and aborts this JVM. |
static java.io.File |
canonical(java.io.File f)
Returns the canonical form of the given File,
aborting in the (unexpected) case of failure. |
static org.xml.sax.InputSource |
fileInputSource(java.io.File file)
Returns a SAX input source for the given File,
aborting in case of failure. |
static org.xml.sax.InputSource |
fileInputSource(java.lang.String path)
Returns a SAX input source for the file with the given path, aborting in case of failure. |
static java.io.InputStream |
newFileInputStream(java.io.File f)
Returns an input stream for the given File,
aborting in case of failure. |
static java.io.InputStream |
newFileInputStream(java.lang.String path)
Returns an input stream for the file with the given path, aborting in case of failure. |
static java.io.OutputStream |
newFileOutputStream(java.io.File f)
Returns an output stream for the given File,
aborting in case of failure. |
static java.io.OutputStream |
newFileOutputStream(java.lang.String path)
Returns an output stream for the file with the given path, aborting in case of failure. |
static java.lang.String |
uriString(java.io.File file)
Returns a URI string for the given File,
aborting in the (unexpected) case of failure. |
static java.lang.String |
uriString(java.lang.String path)
Returns a URI string for the file with the given path, aborting in the (unexpected) case of failure. |
static java.lang.String |
urlStringForFile(java.io.File file)
Returns a URL string for the given File,
aborting in case of failure. |
static java.lang.String |
urlStringForFile(java.lang.String path)
Returns a URL string for the file with the given path, aborting in case of failure. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileUtils()
| Method Detail |
|---|
public static final java.io.InputStream newFileInputStream(java.lang.String path)
public static final java.io.InputStream newFileInputStream(java.io.File f)
File,
aborting in case of failure.
public static final java.io.OutputStream newFileOutputStream(java.lang.String path)
public static final java.io.OutputStream newFileOutputStream(java.io.File f)
File,
aborting in case of failure.
public static org.xml.sax.InputSource fileInputSource(java.lang.String path)
public static org.xml.sax.InputSource fileInputSource(java.io.File file)
File,
aborting in case of failure.
public static java.lang.String urlStringForFile(java.lang.String path)
public static java.lang.String urlStringForFile(java.io.File file)
File,
aborting in case of failure.
public static java.lang.String uriString(java.lang.String path)
public static java.lang.String uriString(java.io.File file)
File,
aborting in the (unexpected) case of failure.
public static java.io.File canonical(java.io.File f)
File,
aborting in the (unexpected) case of failure.
public static final void abort(java.lang.Exception x)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||