PPT Slide
public void readInURL() {
try {
String strTemp;
java.io.InputStream input =
fileURL.openStream();
BufferedReader buff = new BufferedReader
(new InputStreamReader(input));
while((strTemp = buff.readLine()) != null)
ta.append(strTemp+"\n");
/* Be a good net neighbor and
close the stream! */
buff.close();
}
catch(IOException darn){
showStatus("Exception: " + darn);
}
}// readInURL
}// class ReadsFromURL
Previous slide
Next slide
Back to first slide
View graphic version