|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ftpserver.util.IoUtils
IO utility methods.
Constructor Summary | |
IoUtils()
|
Method Summary | |
static void |
close(java.io.InputStream is)
No exception InputStream close method. |
static void |
close(java.io.OutputStream os)
No exception OutputStream close method. |
static void |
close(java.io.Reader rd)
No exception java.io.Reader close method. |
static void |
close(java.io.Writer wr)
No exception java.io.Writer close method. |
static void |
copy(java.io.InputStream input,
java.io.OutputStream output,
int bufferSize)
Copy chars from a InputStream to a OutputStream . |
static void |
copy(java.io.Reader input,
java.io.Writer output,
int bufferSize)
Copy chars from a Reader to a Writer . |
static java.io.BufferedInputStream |
getBufferedInputStream(java.io.InputStream in)
Get a BufferedInputStream . |
static java.io.BufferedOutputStream |
getBufferedOutputStream(java.io.OutputStream out)
Get a BufferedOutputStream . |
static java.io.BufferedReader |
getBufferedReader(java.io.Reader rd)
Get BufferedReader . |
static java.io.BufferedWriter |
getBufferedWriter(java.io.Writer wr)
Get BufferedWriter . |
static java.lang.String |
getStackTrace(java.lang.Throwable ex)
Get exception stack trace. |
static java.io.File |
getUniqueFile(java.io.File oldFile)
Get unique file object. |
static java.lang.String |
readFully(java.io.InputStream input)
Read fully from stream |
static java.lang.String |
readFully(java.io.Reader reader)
Read fully from reader |
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 java.io.BufferedInputStream getBufferedInputStream(java.io.InputStream in)
BufferedInputStream
.
public static java.io.BufferedOutputStream getBufferedOutputStream(java.io.OutputStream out)
BufferedOutputStream
.
public static java.io.BufferedReader getBufferedReader(java.io.Reader rd)
BufferedReader
.
public static java.io.BufferedWriter getBufferedWriter(java.io.Writer wr)
BufferedWriter
.
public static java.io.File getUniqueFile(java.io.File oldFile)
public static void close(java.io.InputStream is)
InputStream
close method.
public static void close(java.io.OutputStream os)
OutputStream
close method.
public static void close(java.io.Reader rd)
java.io.Reader
close method.
public static void close(java.io.Writer wr)
java.io.Writer
close method.
public static java.lang.String getStackTrace(java.lang.Throwable ex)
public static void copy(java.io.Reader input, java.io.Writer output, int bufferSize) throws java.io.IOException
Reader
to a Writer
.
bufferSize
- Size of internal buffer to use.
java.io.IOException
public static void copy(java.io.InputStream input, java.io.OutputStream output, int bufferSize) throws java.io.IOException
InputStream
to a OutputStream
.
bufferSize
- Size of internal buffer to use.
java.io.IOException
public static java.lang.String readFully(java.io.Reader reader) throws java.io.IOException
java.io.IOException
public static java.lang.String readFully(java.io.InputStream input) throws java.io.IOException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |