[Beepcore-java-commits] CVS: beepcore-java/example/org/beepcore/beep/example Bing.java,1.9,1.10
Status: Beta
Brought to you by:
huston
From: Huston F. <hu...@us...> - 2001-11-25 08:00:31
|
Update of /cvsroot/beepcore-java/beepcore-java/example/org/beepcore/beep/example In directory usw-pr-cvs1:/tmp/cvs-serv26746/example/org/beepcore/beep/example Modified Files: Bing.java Log Message: Clarified usage of InputDataStream Index: Bing.java =================================================================== RCS file: /cvsroot/beepcore-java/beepcore-java/example/org/beepcore/beep/example/Bing.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** Bing.java 2001/11/10 21:33:28 1.9 --- Bing.java 2001/11/25 08:00:28 1.10 *************** *** 25,29 **** import org.beepcore.beep.core.BEEPInterruptedException; import org.beepcore.beep.core.Channel; - import org.beepcore.beep.core.InputDataStream; import org.beepcore.beep.core.ProfileRegistry; import org.beepcore.beep.core.Session; --- 25,28 ---- *************** *** 125,134 **** try { // Get the reply to the request ! InputDataStream ds = reply.getNextReply().getDataStream(); ! InputStream is = ds.getInputStream(); // Read the data in the reply ! while (ds.isComplete() == false || is.available() > 0) { ! is.read(); ++replyLength; } --- 124,132 ---- try { // Get the reply to the request ! InputStream is = ! reply.getNextReply().getDataStream().getInputStream(); // Read the data in the reply ! while (is.read() != -1) { ++replyLength; } |