org.syrup.helpers
Class Writer

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.syrup.helpers.Writer
All Implemented Interfaces:
java.lang.Runnable

public class Writer
extends java.lang.Thread

Active Thread to read data from an InputStream and write it to an OutputStream.

Author:
Robbert van Dalen

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Writer(java.io.InputStream i, java.io.OutputStream o)
          Constructor for the Writer object
 
Method Summary
 java.lang.Exception getException()
          Gets the exception attribute of the Writer object.
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Writer

public Writer(java.io.InputStream i,
              java.io.OutputStream o)
Constructor for the Writer object

Parameters:
i - The InputStream to read from.
o - The OutputStream to write to.
Method Detail

run

public void run()

getException

public java.lang.Exception getException()
Gets the exception attribute of the Writer object.

Returns:
The exception value.