|
DJDoc v.1.0.0b-1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.djdoc.util.IOUtils
public class IOUtils
This utility class contains a number of useful static methods related to Stream manipulation.
| Method Summary | |
|---|---|
static void |
copy(java.io.InputStream input,
java.io.OutputStream output)
Reads byte data in chunks of a specified size from one stream and writes it into another stream. |
static void |
copy(java.io.Reader input,
java.io.Writer output)
Reads character data in chunks of a specified size from a Reader and writes it into a Writer. |
static java.io.File |
getFile(java.lang.String... fileNames)
Returns the first existing file from a list of filenames. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void copy(java.io.InputStream input,
java.io.OutputStream output)
throws java.io.IOException
input - The InputStream from which to read the dataoutput - The OutputStream to which to write the data
java.io.IOException
public static void copy(java.io.Reader input,
java.io.Writer output)
throws java.io.IOException
input - The Reader from which to read the dataoutput - The Writer to which to write the data
java.io.IOExceptionpublic static java.io.File getFile(java.lang.String... fileNames)
fileNames - A list of names of (existing or non-existing) files
|
DJDoc v.1.0.0b-1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||