|
jxDBCon 0.9z | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.sourceforge.jxdbcon.postgresql.IntProtocol
The IntProtocol is used by the IntConnection.
| Nested Class Summary | |
(package private) class |
IntProtocol.CommentQuery
|
(package private) class |
IntProtocol.ConnectQuery
|
(package private) class |
IntProtocol.FunctionCallQuery
|
(package private) class |
IntProtocol.ProcResponse
|
(package private) static class |
IntProtocol.Query
|
(package private) static class |
IntProtocol.Response
Abstract base class for the messages sent by the backend. |
(package private) static class |
IntProtocol.Type
|
(package private) class |
IntProtocol.TypeResponse
|
| Field Summary | |
protected DataInputStream |
in
The inputstream for reading from the backend. |
protected DataOutputStream |
out
The OutputStream for writing to the backend. |
| Constructor Summary | |
(package private) |
IntProtocol(DataInputStream in,
DataOutputStream out)
|
| Method Summary | |
IntProtocol.Response |
dispatch(int ch)
Identify the message by the transmitted first character. |
(package private) IntProtocol.Response |
readFirst()
Read the first/next response/query from the backend. |
(package private) byte[] |
readString()
Low level communication function for reading a variable length byte[]. |
(package private) void |
sendCommentAck()
|
(package private) void |
sendConnectAck()
|
(package private) void |
sendError(byte[] errMsg)
|
(package private) void |
sendFuncResult(long retType,
byte[][] resBuf)
|
(package private) void |
sendProcCall(long funcOid)
|
(package private) void |
sendTypeQuery(long oid)
|
(package private) void |
writeString(byte[] buf)
Low level communication function for writing a variable length byte[]. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected DataInputStream in
protected DataOutputStream out
| Constructor Detail |
IntProtocol(DataInputStream in,
DataOutputStream out)
| Method Detail |
public IntProtocol.Response dispatch(int ch)
IntProtocol.Response readFirst()
throws IOException
EOFException - if the end of the stream was found
IOException - if any other IO problem occured
byte[] readString()
throws IOException
IOException
void sendCommentAck()
throws IOException
IOException
void sendConnectAck()
throws IOException
IOException
void sendError(byte[] errMsg)
throws IOException
IOException
void sendFuncResult(long retType,
byte[][] resBuf)
throws IOException
IOException
void sendProcCall(long funcOid)
throws IOException
IOException
void sendTypeQuery(long oid)
throws IOException
IOException
void writeString(byte[] buf)
throws IOException
IOException
|
jxDBCon 0.9z | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||