org.sourceforge.jxutil.io
Class CharStreamCopier
java.lang.Object
|
+--org.sourceforge.jxutil.io.CharStreamCopier
- All Implemented Interfaces:
- Runnable
- public final class CharStreamCopier
- extends Object
- implements Runnable
Copy character streams synchronously/asynchronously to current thread.
- See Also:
Reader
,
Writer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ex
IOException ex
is
Reader is
os
Writer os
transferred
int transferred
CharStreamCopier
public CharStreamCopier(Reader is,
Writer os)
check
public final void check()
throws IOException
IOException
copy
public static void copy(Reader in,
Writer out)
throws IOException,
InterruptedException
IOException
InterruptedException
getTransferred
public final int getTransferred()
run
public final void run()
- Specified by:
run
in interface Runnable
Copyright © 2001,2002 Keve Müller, et al.; see LICENSE file for details.