File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -51,13 +51,13 @@ limitations under the License.
5151 </p >
5252
5353 <source >
54- InputStream in = new URL( "https://commons.apache.org" ).openStream();
54+ InputStream in = new URL("https://commons.apache.org").openStream();
5555 try {
56- InputStreamReader inR = new InputStreamReader( in );
57- BufferedReader buf = new BufferedReader( inR );
56+ InputStreamReader inR = new InputStreamReader(in );
57+ BufferedReader buf = new BufferedReader(inR);
5858 String line;
59- while ( ( line = buf.readLine() ) != null ) {
60- System.out.println( line );
59+ while (( line = buf.readLine()) != null) {
60+ System.out.println(line);
6161 }
6262 } finally {
6363 in.close();
@@ -66,9 +66,9 @@ limitations under the License.
6666 With the IOUtils class, that could be done with:
6767 </p >
6868 <source >
69- InputStream in = new URL( "https://commons.apache.org" ).openStream();
69+ InputStream in = new URL("https://commons.apache.org").openStream();
7070 try {
71- System.out.println( IOUtils.toString( in ) );
71+ System.out.println(IOUtils.toString(in) );
7272 } finally {
7373 IOUtils.closeQuietly(in);
7474 }</source >
You can’t perform that action at this time.
0 commit comments