// without the fix, this test will hang at this point, // i.e inside the call to write()
out.write(newbyte[64*1024]);
} catch (Throwable e) {
// with the fix an IOException is caught
System.out.println("Writer exception:");
e.printStackTrace();
} finally {
System.out.println("Writer done.");
}
}
publicstaticvoid main(String args[]) throws Exception {
in = new PipedInputStream();
out = new PipedOutputStream(in);
WriterLoop writer = new WriterLoop();
writer.start();
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.