Slava Pestov 2005-05-04 06:25:57 +00:00
parent a4a2a8b19a
commit 8c162ebca7
1 changed files with 1 additions and 9 deletions

View File

@ -134,15 +134,7 @@ public class ExternalFactor extends VocabularyLookup
int responseLength = in.readInt(); int responseLength = in.readInt();
byte[] response = new byte[responseLength]; byte[] response = new byte[responseLength];
int n = 0; in.readFully(response);
while (n < response.length)
{
int count = in.read(response,n,response.length - n);
if (count < 0)
throw new EOFException();
System.err.println(new String(response,n,count));
n += count;
}
String responseStr = new String(response,"ASCII"); String responseStr = new String(response,"ASCII");
return responseStr; return responseStr;