안드로이드 개발 질문/답변
(글 수 45,052)
URL text = new URL("http://www.naver.com");
InputStream isText = text.openStream();
URL text = new URL("http://www.naver.com");
HttpURLConnection http= (HttpURLConnection) text.openConnection();
InputStream isText = http.getInputStream();
이 두개의 차이점이 뭔가요?
URL 객체 받아와서
데이터를 주고 받을 수 있도록 InputStream으로 정의해주는거 아니에요??
openStream()과 getInputStream()이 무슨차이인지 잘 모르겠어요..




http://javacan.tistory.com/entry/35 참고하세요