|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TcpProtocol
The TcpProtocol interface enables to plug different application level protocols on a TcpConnector. Note that this interface has lost the direct byte array write method. Standard callers should (and will, since it matches the same signature, which is why the method has not been deprecated) use the generic method instead..
Method Summary | |
---|---|
ResponseOutputStream |
createResponse(Socket socket)
This lets protocols encode a response stream. |
Object |
read(InputStream is)
Reads the input stream and returns a whole message. |
void |
write(OutputStream os,
Object data)
Write the specified message to the output stream. |
Method Detail |
---|
Object read(InputStream is) throws IOException
is
- the input stream
IOException
- if an exception occursvoid write(OutputStream os, Object data) throws IOException
os
- the output stream to write todata
- the data to write
IOException
- if an exception occursResponseOutputStream createResponse(Socket socket) throws IOException
socket
- The destination to write to
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |