org.directwebremoting.extend
Class OutputStreamLoaderInputStreamFactory

java.lang.Object
  extended by org.directwebremoting.extend.OutputStreamLoaderInputStreamFactory
All Implemented Interfaces:
InputStreamFactory

public class OutputStreamLoaderInputStreamFactory
extends java.lang.Object
implements InputStreamFactory

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

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

Constructor Summary
OutputStreamLoaderInputStreamFactory(OutputStreamLoader outputStreamLoader)
          We need an OutputStreamLoader
 
Method Summary
 void close()
          Whether or not this resource has been read from, this should be called to indicate that the resources are no longer required.
 java.io.InputStream getInputStream()
          Gets an input stream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputStreamLoaderInputStreamFactory

public OutputStreamLoaderInputStreamFactory(OutputStreamLoader outputStreamLoader)
We need an OutputStreamLoader

Method Detail

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Description copied from interface: InputStreamFactory
Gets an input stream. This function should be called only once.

Specified by:
getInputStream in interface InputStreamFactory
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Description copied from interface: InputStreamFactory
Whether or not this resource has been read from, this should be called to indicate that the resources are no longer required.

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

Copyright 2008