Searched refs:inputStream (Results 1 – 2 of 2) sorted by relevance
76 TestInputStream inputStream = new TestInputStream(new ByteArrayInputStream(bytes)); in testGetDistroVersion_closesStream() local77 TimeZoneDistro distro = new TimeZoneDistro(inputStream); in testGetDistroVersion_closesStream()79 inputStream.assertClosed(); in testGetDistroVersion_closesStream()92 TestInputStream inputStream = new TestInputStream(new ByteArrayInputStream(bytes)); in testExtractTo_closesStream() local93 TimeZoneDistro distro = new TimeZoneDistro(inputStream); in testExtractTo_closesStream()96 inputStream.assertClosed(); in testExtractTo_closesStream()111 TestInputStream inputStream = in testExtractZipSafely_goodZip() local113 TimeZoneDistro.extractZipSafely(inputStream, targetDir, true /* makeWorldReadable */); in testExtractZipSafely_goodZip()114 inputStream.assertClosed(); in testExtractZipSafely_goodZip()144 TestInputStream inputStream = new TestInputStream( in doExtractZipFails() local[all …]
65 private final InputStream inputStream; field in TimeZoneDistro78 public TimeZoneDistro(InputStream inputStream) { in TimeZoneDistro() argument79 this.inputStream = inputStream; in TimeZoneDistro()87 byte[] contents = getEntryContents(inputStream, DISTRO_VERSION_FILE_NAME); in getDistroVersion()126 extractZipSafely(inputStream, targetDir, true /* makeWorldReadable */); in extractTo()