org.mockme.io
Class MockInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.mockme.io.MockInputStream
All Implemented Interfaces:
Closeable

public class MockInputStream
extends InputStream


Constructor Summary
MockInputStream()
           
 
Method Summary
 void add(byte[] bytes)
           
 void add(int b)
           
 void add(String str)
           
 void close()
           
 int read()
           
 
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockInputStream

public MockInputStream()
Method Detail

add

public void add(String str)

add

public void add(byte[] bytes)

add

public void add(int b)

read

public int read()
         throws IOException
Specified by:
read in class InputStream
Throws:
IOException

close

public void close()
Specified by:
close in interface Closeable
Overrides:
close in class InputStream


Copyright © 2006-2007 Jayway AB. All Rights Reserved.