|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.washington.cs.knowitall.commonlib.FileUtils
public class FileUtils
| Constructor Summary | |
|---|---|
FileUtils()
|
|
| Method Summary | |
|---|---|
static ArrayList<File> |
find(File path,
Boolean recursive)
Return all files beneath path. |
static String |
getExtension(File f)
Get the text after the final dot (.) in the file name. |
static void |
pipe(InputStream is,
OutputStream os)
Writes all lines read from the reader. |
static void |
pipe(InputStream is,
OutputStream os,
int buffersize)
Writes all lines read from the reader. |
static void |
pipe(Reader reader,
Writer writer)
Writes all lines read from the reader. |
static void |
pipe(Reader reader,
Writer writer,
int buffersize)
Writes all lines read from the reader. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileUtils()
| Method Detail |
|---|
public static String getExtension(File f)
f - The file to get the extension of.
public static void pipe(Reader reader,
Writer writer)
throws IOException
reader - The source readerwriter - The destination writer
IOException
public static void pipe(Reader reader,
Writer writer,
int buffersize)
throws IOException
reader - the source readerwriter - the destination writerbuffersize - size of the buffer to use
IOException
public static void pipe(InputStream is,
OutputStream os)
throws IOException
is - The input streamos - The output stream
IOException
public static void pipe(InputStream is,
OutputStream os,
int buffersize)
throws IOException
is - The input streamos - The output streambuffersize - size of the buffer to use
IOException
public static ArrayList<File> find(File path,
Boolean recursive)
path - the path to searchrecursive - iff true, search subdirectories too.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||