|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfnug.util.IOUtils
public class IOUtils
Helper methods for i/o operations.
Constructor Summary | |
---|---|
IOUtils()
|
Method Summary | |
---|---|
static String |
md5(String s)
Makes an md5 sum of the given string. |
static String |
normalize(String path)
Helper method to normalize ../foo/../bar/../ style paths. |
static void |
rm(File cur)
Recursively remove the given file. |
static void |
spool(InputStream is,
OutputStream os)
Copies all bytes of the input stream to the output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IOUtils()
Method Detail |
---|
public static void rm(File cur)
cur
- file to remove recursively.public static String md5(String s)
s
- string to make sum of.
public static void spool(InputStream is, OutputStream os) throws IOException
is
- Read fromos
- Write to.
IOException
- if any stream throws exception.public static String normalize(String path)
../foo/../bar/../
style paths.
path
- to normalize
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |