Java Reference
In-Depth Information
// If no such file, then send the famous 404
// message.
pw - client - out.println(
"ADC readout failure - Illegal Address
Exception");
pw - client - out.println(fWebPageBot);
pw - client - out.flush ();
// For PrintStream with SNAP
} catch (FileNotFoundException e) {
// If no such file, then send the famous 404
// message.
pw - client - out.println ("404 Object Not Found");
pw - client - out.flush ();
// For PrintStream with SNAP
}
}
else {
pw - client - out.println ( " 400 Bad Request " );
pw - client - out.flush ();
// For PrintStream with SNAP
}
}
catch (IOException e) {
System.out.println ("I/O error " + e);
}
// Close client socket.
try {
fClient.close ();
}
catch (IOException e) {
System.out.println ("I/O error " + e);
}
} // run
/**
* Since the platform may not include the J2SE 1.4
* String class with the split() method, we provide
*asubstitute. This method returns an array with
* the tokens in the string parameter that are
* separated by blank spaces.
**/
 
Search WWH ::




Custom Search