boolean success = true;
DataInputStream din = new DataInputStream(ins);
// Read tokens until the "end-of-message" token is seen.
try {
String token = din.readUTF();
while (token.compareTo(endToken) != 0) {
addArg(token);
token = din.readUTF();
}
}
catch (IOException e) {
// Failed to read complete argument list.
success = false;
}
return success;