|
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||||
java.lang.Objectcom.actimind.actiwate.testing.util.ByteArrayStreamFactory
Factory for creating InputStreams from byte arrays.
| Constructor Summary | |
ByteArrayStreamFactory(byte[] byteArray)
Creates a new ByteArrayStreamFactory. |
|
| Method Summary | |
java.io.InputStream |
createInputStream()
Creates and returns a new ByteArrayInputStream. |
long |
getLength()
Returns stream's length in bytes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ByteArrayStreamFactory(byte[] byteArray)
throws java.lang.IllegalArgumentException
byteArray - byte array to create InputStreams from.
java.lang.IllegalArgumentException - if byteArray is null| Method Detail |
public long getLength()
getLength in interface InputStreamFactory
public java.io.InputStream createInputStream()
throws java.io.IOException
createInputStream in interface InputStreamFactoryjava.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||