oops
parent
a4a2a8b19a
commit
8c162ebca7
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue