Searched refs:inputStream (Results 1 – 3 of 3) 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()
59 InputStream inputStream = null; in getNanoAppInputStream() local61 inputStream = context.getAssets().open(fileName); in getNanoAppInputStream()65 return inputStream; in getNanoAppInputStream()