|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The TcpProtocol interface enables to plug different application level protocols on a TcpConnector.
| Method Summary | |
byte[] |
read(InputStream is)
Reads the input stream and returns a whole message. |
void |
write(OutputStream os,
byte[] data)
Write the specified message to the output stream. |
| Method Detail |
public byte[] read(InputStream is)
throws IOException
is - the input stream
IOException - if an exception occurs
public void write(OutputStream os,
byte[] data)
throws IOException
os - the output stream to write todata - the data to write
IOException - if an exception occurs
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||