JVM Languages
javanio.txt
Associated article: High-Performance I/O with Java NIO
Tags: Mobile JVM Languages
Published source code accompanying the article by Brian Pontarelli in which he examine Java's NIO library which offers a high-performance technique for handling input/output (IO) operations. Also see JAVANIO.ZIP.
High-Performance IO with Java NIO
by Brian Pontarelli
Listing One
public class IOThread extends Thread {
private String result;
public synchronized String getResult() {
return result;
}
public void run() {
try {
// Connect to the remote host and read in the data
URL url = ...


