version 1.0

com.actimind.actiwate.testing.util
Interface InputStreamFactory

All Known Implementing Classes:
ByteArrayStreamFactory, FileStreamFactory

public interface InputStreamFactory

Factory for creating InputStreams.


Method Summary
 java.io.InputStream createInputStream()
          Creates a new InputStream.
 long getLength()
          Returns stream's length in bytes.
 

Method Detail

getLength

public long getLength()
Returns stream's length in bytes.

Returns:
stream's length.

createInputStream

public java.io.InputStream createInputStream()
                                      throws java.io.IOException
Creates a new InputStream. NOTE: this method may be called multiple times, so be sure to create a separate InputStream for each call.

Returns:
created InputStream
Throws:
java.io.IOException


Copyright © 2007 Actimind, Inc. All Rights Reserved.