org.directwebremoting.extend
Class InputStreamFactoryOutputStreamLoader

java.lang.Object
  extended by org.directwebremoting.extend.InputStreamFactoryOutputStreamLoader
All Implemented Interfaces:
OutputStreamLoader

public final class InputStreamFactoryOutputStreamLoader
extends java.lang.Object
implements OutputStreamLoader

Used when the FileTransfer has a InputStreamFactory, but what it really wants is an OutputStreamLoader

Author:
Joe Walker [joe at getahead dot ltd dot uk]

Constructor Summary
InputStreamFactoryOutputStreamLoader(InputStreamFactory inputStreamFactory)
          We need an InputStreamFactory
 
Method Summary
 void close()
          This method indicates that whether or not this resource has been read, it is not longer required.
 void load(java.io.OutputStream out)
          Write all the data to the given output stream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputStreamFactoryOutputStreamLoader

public InputStreamFactoryOutputStreamLoader(InputStreamFactory inputStreamFactory)
We need an InputStreamFactory

Method Detail

load

public void load(java.io.OutputStream out)
          throws java.io.IOException
Description copied from interface: OutputStreamLoader
Write all the data to the given output stream.

Specified by:
load in interface OutputStreamLoader
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Description copied from interface: OutputStreamLoader
This method indicates that whether or not this resource has been read, it is not longer required. Must be called by whatever calls OutputStreamLoader.load(OutputStream) when it has finished reading from the stream, or when it has decided that it never will call OutputStreamLoader.load(OutputStream).

Specified by:
close in interface OutputStreamLoader
Throws:
java.io.IOException

Copyright 2008