// Set up input stream filters.// Page 169 10th line down or so...
BufferedReader br = new BufferedReader(new InputStreamReader(instream));//reads the input data

// Get the request line of the HTTP request message.
String requestLine = br.readLine();// get /path/file.html version of http

// Display the request line.
System.out.println();
System.out.println(requestLine);// HERE WE NEED TO DEAL WITH THE REQUEST// Extract the filename from the request line.
StringTokenizer tokens = new StringTokenizer(requestLine);// this is a input method with deliminators
tokens.nextToken(); // skip over the method, which should be "GET"
String fileName = tokens.nextToken();

// Prepend a "." so that file request is within the current directory.
fileName = "." + fileName;

//code from part 1// Right here feed the client something//os.writeBytes("<html><body><h1>My First Heading</h1>");//os.writeBytes( "<p>My first paragraph.</p></body></html> ");//os.flush();// Close streams and socket.
os.close();
br.close();
socket.close();