|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IProtocolHandler
This interface describes the methods needed from ForwardConnection. Implementations of this interface must check the incoming stream for messages, react on this messages or forward them to the server.
Method Summary | |
---|---|
int |
available()
Returns the number of bytes which are ready to read without blocking by the next call of read(). |
void |
close()
Closes the connection to the server and stops handling of protocol messages. |
int |
read(byte[] a_buffer)
Read a_buffer.length bytes from the server in the buffer a_buffer. |
void |
write(byte[] a_buffer)
Writes the bytes in a_buffer to the server or the protocol handler. |
Method Detail |
---|
int available() throws java.lang.Exception
java.lang.Exception
int read(byte[] a_buffer) throws java.lang.Exception
a_buffer
- A buffer for the read bytes.
java.lang.Exception
void write(byte[] a_buffer) throws java.lang.Exception
a_buffer
- A buffer with the bytes to write.
java.lang.Exception
void close()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |