home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &n…he Search for Life DVD 2 / DVD-ROM.iso / install / jre1_3 / lib / rt.jar / sun / net / www / content / text / plain.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  694 b   |  18 lines

  1. package sun.net.www.content.text;
  2.  
  3. import java.io.IOException;
  4. import java.io.InputStream;
  5. import java.net.ContentHandler;
  6. import java.net.URLConnection;
  7.  
  8. public class plain extends ContentHandler {
  9.    public Object getContent(URLConnection var1) {
  10.       try {
  11.          InputStream var2 = var1.getInputStream();
  12.          return new PlainTextInputStream(var1.getInputStream());
  13.       } catch (IOException var3) {
  14.          return "Error reading document:\n" + ((Throwable)var3).toString();
  15.       }
  16.    }
  17. }
  18.