com.mortbay.Util
Class IO
java.lang.Object
|
+--com.mortbay.Util.ThreadPool
|
+--com.mortbay.Util.IO
- public class IO
- extends ThreadPool
IO Utilities
Provides stream handling utilities in
singleton Threadpool implementation accessed by static members.
Method Summary |
static void |
copy(java.io.InputStream in,
java.io.OutputStream out)
Copy Stream in to Stream out until EOF or exception |
static void |
copy(java.io.InputStream in,
java.io.OutputStream out,
long byteCount)
Copy Stream in to Stream for byteCount bytes or until EOF or exception |
static void |
copy(java.io.Reader in,
java.io.Writer out)
Copy Reader to Writer out until EOF or exception |
static void |
copy(java.io.Reader in,
java.io.Writer out,
long byteCount)
Copy Reader to Writer for byteCount bytes or until EOF or exception |
static void |
copyThread(java.io.InputStream in,
java.io.OutputStream out)
Copy Stream in to Stream out until EOF or exception
in own thread |
static void |
copyThread(java.io.Reader in,
java.io.Writer out)
Copy Stream in to Stream out until EOF or exception
in own thread |
void |
handle(java.lang.Object o)
Run copy for copyThread() |
static IO |
instance()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
bufferSize
public static int bufferSize
IO
public IO()
instance
public static IO instance()
copyThread
public static void copyThread(java.io.InputStream in,
java.io.OutputStream out)
- Copy Stream in to Stream out until EOF or exception
in own thread
copy
public static void copy(java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
- Copy Stream in to Stream out until EOF or exception
copyThread
public static void copyThread(java.io.Reader in,
java.io.Writer out)
- Copy Stream in to Stream out until EOF or exception
in own thread
copy
public static void copy(java.io.Reader in,
java.io.Writer out)
throws java.io.IOException
- Copy Reader to Writer out until EOF or exception
copy
public static void copy(java.io.InputStream in,
java.io.OutputStream out,
long byteCount)
throws java.io.IOException
- Copy Stream in to Stream for byteCount bytes or until EOF or exception
copy
public static void copy(java.io.Reader in,
java.io.Writer out,
long byteCount)
throws java.io.IOException
- Copy Reader to Writer for byteCount bytes or until EOF or exception
handle
public void handle(java.lang.Object o)
- Run copy for copyThread()
- Overrides:
- handle in class ThreadPool
- Tags copied from class: ThreadPool
- Parameters:
job
-