@@ -56,12 +56,6 @@ public PG_Stream(String host, int port) throws IOException
56
56
*/
57
57
public void SendChar (int val ) throws IOException
58
58
{
59
- // Original code
60
- //byte b[] = new byte[1];
61
- //b[0] = (byte)val;
62
- //pg_output.write(b);
63
-
64
- // Optimised version by Sverre H. Huseby Aug 22 1999 Applied Sep 13 1999
65
59
pg_output .write ((byte )val );
66
60
}
67
61
@@ -84,30 +78,6 @@ public void SendInteger(int val, int siz) throws IOException
84
78
Send (buf );
85
79
}
86
80
87
- /**
88
- * Sends an integer to the back end in reverse order.
89
- *
90
- * This is required when the backend uses the routines in the
91
- * src/backend/libpq/pqcomprim.c module.
92
- *
93
- * As time goes by, this should become obsolete.
94
- *
95
- * @param val the integer to be sent
96
- * @param siz the length of the integer in bytes (size of structure)
97
- * @exception IOException if an I/O error occurs
98
- */
99
- public void SendIntegerReverse (int val , int siz ) throws IOException
100
- {
101
- byte [] buf = bytePoolDim1 .allocByte (siz );
102
- int p =0 ;
103
- while (siz -- > 0 )
104
- {
105
- buf [p ++] = (byte )(val & 0xff );
106
- val >>= 8 ;
107
- }
108
- Send (buf );
109
- }
110
-
111
81
/**
112
82
* Send an array of bytes to the backend
113
83
*
@@ -155,17 +125,6 @@ public void Send(byte buf[], int off, int siz) throws IOException
155
125
}
156
126
}
157
127
158
- /**
159
- * Sends a packet, prefixed with the packet's length
160
- * @param buf buffer to send
161
- * @exception SQLException if an I/O Error returns
162
- */
163
- public void SendPacket (byte [] buf ) throws IOException
164
- {
165
- SendInteger (buf .length +4 ,4 );
166
- Send (buf );
167
- }
168
-
169
128
/**
170
129
* Receives a single character from the backend
171
130
*
0 commit comments