1 parent 0c246d2 commit 109f8b4Copy full SHA for 109f8b4
1 file changed
src/effectivejava/chapter9/item59/Curl.java
@@ -4,7 +4,7 @@
4
import java.io.InputStream;
5
import java.net.URL;
6
7
-// Printing the contents of a URL with transferTo, added in Java 9 (Page 269)
+// 코드 59-2 transferTo 메서드를 이용해 URL의 내용 가져오기 - 자바 9부터 가능하다. (353쪽)
8
public class Curl {
9
public static void main(String[] args) throws IOException {
10
try (InputStream in = new URL(args[0]).openStream()) {
0 commit comments