|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.riotfamily.common.io.IOUtils
public class IOUtils
Field Summary | |
---|---|
static int |
BUFFER_SIZE
|
Method Summary | |
---|---|
static void |
clear(File file)
|
static void |
clearDirectory(File f)
|
static void |
closeReader(Reader reader)
|
static void |
closeStream(InputStream in)
|
static void |
closeStream(OutputStream out)
|
static void |
closeWriter(Writer writer)
|
static int |
copy(File file,
OutputStream out)
Copies the content of the given File to an OutputStream. |
static int |
copy(File file,
Writer out,
String encoding)
Copies the content of the given File to a Writer. |
static int |
copy(InputStream in,
OutputStream out)
Copies the content of the given InputStream to an OutputStream. |
static int |
copy(InputStream in,
Writer out,
String encoding)
Copies the content of the given InputStream to a Writer. |
static int |
copy(Reader in,
Writer out)
Copies the content of the given Reader to a Writer. |
static void |
delete(File file)
|
static void |
deleteRecursive(File f)
|
static void |
move(File source,
File dest)
|
static int |
serve(File file,
OutputStream out)
Copies the content of the given File to an OutputStream, swallowing exceptions caused by a ClientAbortException. |
static int |
serve(File file,
Writer out,
String encoding)
Copies the content of the given File to a Writer, swallowing exceptions caused by a ClientAbortException. |
static int |
serve(InputStream in,
OutputStream out)
Copies the content of the given InputStream to an OutputStream, swallowing exceptions caused by a ClientAbortException. |
static int |
serve(InputStream in,
Writer out,
String encoding)
Copies the content of the given InputStream to a Writer, swallowing exceptions caused by a ClientAbortException. |
static int |
serve(Reader in,
Writer out)
Copies the content of the given Reader to a Writer, swallowing exceptions caused by a ClientAbortException. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int BUFFER_SIZE
Method Detail |
---|
public static int copy(InputStream in, OutputStream out) throws IOException
FileCopyUtils.copy(InputStream, OutputStream)
this method
does not close the OutputStream (only the InputStream).
in
- the stream to copy fromout
- the stream to copy to
IOException
- in case of I/O errorspublic static int serve(InputStream in, OutputStream out) throws IOException
IOException
copy(InputStream, OutputStream)
public static int copy(File file, OutputStream out) throws IOException
IOException
copy(InputStream, OutputStream)
public static int serve(File file, OutputStream out) throws IOException
IOException
copy(File, OutputStream)
public static int copy(Reader in, Writer out) throws IOException
FileCopyUtils.copy(Reader, Writer)
this method does not
close the Writer (only the Reader).
in
- the Reader to copy fromout
- the Writer to copy to
IOException
- in case of I/O errorspublic static int serve(Reader in, Writer out) throws IOException
IOException
copy(Reader, Writer)
public static int copy(InputStream in, Writer out, String encoding) throws IOException
IOException
copy(Reader, Writer)
public static int serve(InputStream in, Writer out, String encoding) throws IOException
IOException
copy(InputStream, Writer, String)
public static int copy(File file, Writer out, String encoding) throws IOException
IOException
copy(InputStream, Writer, String)
public static int serve(File file, Writer out, String encoding) throws IOException
IOException
copy(File, Writer, String)
public static void closeStream(InputStream in)
public static void closeStream(OutputStream out)
public static void closeReader(Reader reader)
public static void closeWriter(Writer writer)
public static void move(File source, File dest)
public static void clear(File file) throws IOException
IOException
public static void delete(File file)
public static void clearDirectory(File f)
public static void deleteRecursive(File f)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |