FileInputStream stream = new FileInputStream(...)
다음이 주위에 다른 스트림을 만들려면 기본 스트림을 생성하는 경우 :
ZipInputStream stream2 = new ZipInputStream(stream)
ZipInputStream stream3 = new ZipInputStream(stream)
하고베이스 닫습니다
stream.close()
을 내가 모든 물줄기로 끝내면 이것으로 충분합니까? 아니면 외부의 물줄기도 닫아야합니까?
편집을 명확하게하기 위해 압축 스트림으로 변경되었습니다.
'SomeOtherSteam'에 따라 다릅니다. [docs] (http://docs.oracle.com/javase/7/docs/api/java/io/FileInputStream.html#close())를 참조하십시오. 확실한. – Maroun