< prev index next >

src/share/classes/sun/net/www/protocol/gopher/GopherClient.java

Print this page
rev 1564 : 7090158: Networking Libraries don't build with javac -Werror
7125055: ContentHandler.getContent API changed in error
Summary: Minor changes to networking java files to remove warnings
Reviewed-by: chegar, weijun, hawtin, alanb
Contributed-by: kurchi.subhra.hazra@oracle.com, sasha_bu@hotmail.com

*** 279,289 **** ps.print("<html><head><title>"); ps.print(title); ps.print("</title></head>\n<body>\n<H1>"); ps.print(title); ps.print("</h1><dl compact>\n"); ! DataInputStream ds = new DataInputStream(serverInput); String s; while ((s = ds.readLine()) != null) { int len = s.length(); while (len > 0 && s.charAt(len - 1) <= ' ') len--; --- 279,289 ---- ps.print("<html><head><title>"); ps.print(title); ps.print("</title></head>\n<body>\n<H1>"); ps.print(title); ps.print("</h1><dl compact>\n"); ! BufferedReader ds = new BufferedReader(new InputStreamReader(serverInput)); String s; while ((s = ds.readLine()) != null) { int len = s.length(); while (len > 0 && s.charAt(len - 1) <= ' ') len--;
< prev index next >