
Anhang A
117
public synchronized void anfrageStop()
{
anfrage = true;
}
public void run()
{
int len;
byte[] b = new byte[100];
try {
while (!anfrage) {
try {
if ((len = in.read(b)) == -1)
{
break;
}
System.out.write(b, 0, len);
}
catch (InterruptedIOException e) {}
}
}
catch (IOException e) {
System.err.println(e.toString());
}
}
}
Comentarios a estos manuales