isr = new InputStreamReader (s
// Create a buffered reader that chains to the input stream
// reader
// for reading entire lines of text
br = new BufferedReader (isr);
// Create a print writer that chains to the socket´s byte
// oriented output stream
// intermediate output stream writer that converts
// characters sent to the socket to bytes
// is based on the platform´s default character set
pw = new PrintWriter (s
// Send the DATE command to the server
pw
// Obtain and print the current date/time
System
// Send the PAUSE command to the server
// clients to start and verifies that the server is spawning
// multiple threads
pw
// Send the DOW command to the server
pw
// Obtain and print the current day of week
System
// Send the DOM command to the server
pw
// Obtain and print the current day of month
System
// Send the DOY command to the server
pw
[
From:http://tw.wingwit.com/Article/program/Java/hx/201311/27217.html