org.mockme.io
Class MockStreamConnection

java.lang.Object
  extended by org.mockme.io.MockStreamConnection
All Implemented Interfaces:
Connection, InputConnection, OutputConnection, StreamConnection

public class MockStreamConnection
extends Object
implements StreamConnection


Constructor Summary
MockStreamConnection()
           
 
Method Summary
 void close()
           
 DataInputStream openDataInputStream()
           
 DataOutputStream openDataOutputStream()
           
 InputStream openInputStream()
           
 OutputStream openOutputStream()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockStreamConnection

public MockStreamConnection()
Method Detail

openDataInputStream

public DataInputStream openDataInputStream()
                                    throws IOException
Specified by:
openDataInputStream in interface InputConnection
Throws:
IOException

openInputStream

public InputStream openInputStream()
                            throws IOException
Specified by:
openInputStream in interface InputConnection
Throws:
IOException

openDataOutputStream

public DataOutputStream openDataOutputStream()
                                      throws IOException
Specified by:
openDataOutputStream in interface OutputConnection
Throws:
IOException

openOutputStream

public OutputStream openOutputStream()
                              throws IOException
Specified by:
openOutputStream in interface OutputConnection
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Connection
Throws:
IOException


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