hiit.transceiver
Interface Transceiver

All Known Implementing Classes:
ByteStreamTransceiver

public interface Transceiver


Method Summary
 void close()
           
 int read()
           
 int read(int[] arr, int from, int lth)
          Reads lth bytes from the input stream into arr, starting from array index from
 void readFrom(java.net.Socket s)
           
 void reconnect()
           
 void write(byte[] message)
           
 void write(java.lang.String message)
           
 

Method Detail

readFrom

void readFrom(java.net.Socket s)

read

int read(int[] arr,
         int from,
         int lth)
Reads lth bytes from the input stream into arr, starting from array index from

Parameters:
arr - The array to save the read bytes into.
from - The index to start filling the array from.
lth - How many bytes to read from the input stream.
Returns:
How many bytes were read.

read

int read()

write

void write(java.lang.String message)
           throws java.io.IOException
Throws:
java.io.IOException

write

void write(byte[] message)
           throws java.io.IOException
Throws:
java.io.IOException

close

void close()

reconnect

void reconnect()