org.apache.droids.handle
Class WriterHandler

java.lang.Object
  extended by org.apache.droids.helper.Loggable
      extended by org.apache.droids.handle.WriterHandler
Direct Known Subclasses:
Save, Sysout

public class WriterHandler
extends Loggable

Wrapper that allows you to pipe a stream from a reader to a writer via a buffer

Version:
1.0

Field Summary
 
Fields inherited from class org.apache.droids.helper.Loggable
log
 
Constructor Summary
WriterHandler()
           
 
Method Summary
protected static void pipe(java.io.Reader reader, java.io.Writer writer)
          Pipes everything from the reader to the writer via a buffer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriterHandler

public WriterHandler()
Method Detail

pipe

protected static void pipe(java.io.Reader reader,
                           java.io.Writer writer)
                    throws java.io.IOException
Pipes everything from the reader to the writer via a buffer

Parameters:
reader - the underlying read to read from
writer - the destination writer
Throws:
java.io.IOException


Copyright © 2007-2009. All Rights Reserved.