simple.io
Class IOLink
java.lang.Object
simple.io.IOLink
public final class IOLink
- extends java.lang.Object
Links an OutputStream with an InputStream or a Writer with a Reader.
Created: 2006
- Author:
- Kenneth Pierce
|
Field Summary |
private java.io.Reader |
inr
|
private java.io.InputStream |
ins
|
private java.io.OutputStream |
outs
|
private java.io.Writer |
outw
|
|
Constructor Summary |
IOLink(java.io.OutputStream out,
java.io.InputStream in)
|
IOLink(java.io.Writer out,
java.io.Reader in)
|
|
Method Summary |
void |
link()
Copies from the source to the destination. |
void |
linkAsynchronously()
Copies from the source to the destination in a new thread. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
outs
private final java.io.OutputStream outs
ins
private final java.io.InputStream ins
outw
private final java.io.Writer outw
inr
private final java.io.Reader inr
IOLink
public IOLink(java.io.OutputStream out,
java.io.InputStream in)
IOLink
public IOLink(java.io.Writer out,
java.io.Reader in)
link
public void link()
throws java.io.IOException
- Copies from the source to the destination. Blocks until finished.
- Throws:
java.io.IOException
linkAsynchronously
public void linkAsynchronously()
- Copies from the source to the destination in a new thread.