jxUtil 0.6

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

Field Summary
(package private)  IOException ex
           
(package private)  Reader is
           
(package private)  Writer os
           
(package private)  int transferred
           
 
Constructor Summary
CharStreamCopier(Reader is, Writer os)
           
 
Method Summary
 void check()
           
static void copy(Reader in, Writer out)
           
 int getTransferred()
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ex

IOException ex

is

Reader is

os

Writer os

transferred

int transferred
Constructor Detail

CharStreamCopier

public CharStreamCopier(Reader is,
                        Writer os)
Method Detail

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

jxUtil 0.6

Copyright © 2001,2002 Keve Müller, et al.; see LICENSE file for details.