|
From: Gerry D. <gd...@us...> - 2002-06-11 18:27:01
|
Update of /cvsroot/swapdv/swapdv/ReplayClient
In directory usw-pr-cvs1:/tmp/cvs-serv3068/ReplayClient
Modified Files:
ReplayConnection.java
Log Message:
Replaced deprecated calls, added Util.ReadLine and modified position and sizing for first time Frame displays
Index: ReplayConnection.java
===================================================================
RCS file: /cvsroot/swapdv/swapdv/ReplayClient/ReplayConnection.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- ReplayConnection.java 11 Jun 2002 15:50:04 -0000 1.5
+++ ReplayConnection.java 11 Jun 2002 18:26:58 -0000 1.6
@@ -101,7 +101,8 @@
is = new ThrottledInputStream(s.getInputStream());
DataInputStream dis = new DataInputStream(is);
do {
- line = dis.readLine();
+ //line = dis.readLine();
+ line = swapdv.Util.readLine(dis);
if (line.indexOf("X-User-Agent: SwapDV") != -1)
isSwapDV = true;
} while (line != null && line.length() > 0);
@@ -125,7 +126,8 @@
bos.close();
DataInputStream dis = new DataInputStream(new ByteArrayInputStream(bos.toByteArray()));
while (dis.available()>0) {
- v.addElement(dis.readLine());
+ //v.addElement(dis.readLine());
+ v.addElement(swapdv.Util.readLine(dis));
}
Logger.log(c.chan, LoggerI.LEVEL_DEBUG, "Processed response body ok");
} catch (Exception ex) {
|