test
Class KeyExchangeTest.TestStream

java.lang.Object
  |
  +--test.KeyExchangeTest.TestStream
All Implemented Interfaces:
IOStream
Enclosing class:
KeyExchangeTest

static class KeyExchangeTest.TestStream
extends java.lang.Object
implements IOStream


Field Summary
(package private)  java.io.InputStream is
           
(package private)  java.io.OutputStream os
           
 
Constructor Summary
(package private) KeyExchangeTest.TestStream()
           
 
Method Summary
 int available()
           
 void closeIn()
          Closes the Inputstream.
 void closeOut()
          Closes the outputStream.
 int read(byte[] buffer)
          Reads an array of bytes from a stream
 void write(byte[] buffer)
          Writes an array of bytes to a stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

is

java.io.InputStream is

os

java.io.OutputStream os
Constructor Detail

KeyExchangeTest.TestStream

KeyExchangeTest.TestStream()
Method Detail

read

public int read(byte[] buffer)
         throws java.io.IOException
Description copied from interface: IOStream
Reads an array of bytes from a stream

Specified by:
read in interface IOStream
Parameters:
buffer - the buffer, which shall be filled with bytes read
Returns:
the number of bytes read, or -1 if the End Of Stream is reached.
Throws:
java.io.IOException - if an error occures while reading from the stream

write

public void write(byte[] buffer)
           throws java.io.IOException
Description copied from interface: IOStream
Writes an array of bytes to a stream.

Specified by:
write in interface IOStream
Parameters:
buffer - the buffer holding the bytes to write to the stream
Throws:
java.io.IOException - if an error occures while writing to the stream

closeIn

public void closeIn()
             throws java.io.IOException
Description copied from interface: IOStream
Closes the Inputstream.

Specified by:
closeIn in interface IOStream
java.io.IOException

closeOut

public void closeOut()
              throws java.io.IOException
Description copied from interface: IOStream
Closes the outputStream.

Specified by:
closeOut in interface IOStream
java.io.IOException

available

public int available()
              throws java.io.IOException
Specified by:
available in interface IOStream
Returns:
the number of bytes currently available from the inputstream without blocking.
java.io.IOException


Copyright © 2003 DRIM Team. All Rights Reserved.