Home
last modified time | relevance | path

Searched refs:fis (Results 1 – 25 of 89) sorted by relevance

1234

/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/
DLister.java58 try (final InputStream fis = new BufferedInputStream(Files.newInputStream(f.toPath())); in listStream() argument
59 final ArchiveInputStream ais = createArchiveInputStream(args, fis)) { in listStream()
68 …vate static ArchiveInputStream createArchiveInputStream(final String[] args, final InputStream fis) in createArchiveInputStream() argument
71 return factory.createArchiveInputStream(args[1], fis); in createArchiveInputStream()
73 return factory.createArchiveInputStream(fis); in createArchiveInputStream()
77 try (final InputStream fis = new BufferedInputStream(Files.newInputStream(f.toPath()))) { in detectFormat() argument
78 return factory.detect(fis); in detectFormat()
/external/testng/src/main/java/org/testng/internal/
DPropertiesFile.java27 FileInputStream fis = null; in PropertiesFile() local
32 fis = new FileInputStream(new File(fileName)); in PropertiesFile()
33 m_properties.load(fis); in PropertiesFile()
37 if( fis != null) { in PropertiesFile()
38 fis.close(); in PropertiesFile()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/
DTarTestCase.java224 FileInputStream fis = null; in testFileEntryFromFile() local
232 fis = new FileInputStream(tmp[1]); in testFileEntryFromFile()
233 while (fis.read(b) > 0) { in testFileEntryFromFile()
236 fis.close(); in testFileEntryFromFile()
237 fis = null; in testFileEntryFromFile()
259 if (fis != null) { in testFileEntryFromFile()
260 fis.close(); in testFileEntryFromFile()
273 FileInputStream fis = null; in testExplicitFileEntry() local
283 fis = new FileInputStream(tmp[1]); in testExplicitFileEntry()
284 while (fis.read(b) > 0) { in testExplicitFileEntry()
[all …]
DCpioTestCase.java203 FileInputStream fis = null; in testFileEntryFromFile() local
211 fis = new FileInputStream(tmp[1]); in testFileEntryFromFile()
212 while (fis.read(b) > 0) { in testFileEntryFromFile()
215 fis.close(); in testFileEntryFromFile()
216 fis = null; in testFileEntryFromFile()
238 if (fis != null) { in testFileEntryFromFile()
239 fis.close(); in testFileEntryFromFile()
252 FileInputStream fis = null; in testExplicitFileEntry() local
263 fis = new FileInputStream(tmp[1]); in testExplicitFileEntry()
264 while (fis.read(b) > 0) { in testExplicitFileEntry()
[all …]
DArTestCase.java279 FileInputStream fis = null; in testFileEntryFromFile() local
287 fis = new FileInputStream(tmp[1]); in testFileEntryFromFile()
288 while (fis.read(b) > 0) { in testFileEntryFromFile()
291 fis.close(); in testFileEntryFromFile()
292 fis = null; in testFileEntryFromFile()
315 if (fis != null) { in testFileEntryFromFile()
316 fis.close(); in testFileEntryFromFile()
329 FileInputStream fis = null; in testExplicitFileEntry() local
339 fis = new FileInputStream(tmp[1]); in testExplicitFileEntry()
340 while (fis.read(b) > 0) { in testExplicitFileEntry()
[all …]
DZipTestCase.java520 FileInputStream fis = null; in testFileEntryFromFile() local
528 fis = new FileInputStream(tmp[1]); in testFileEntryFromFile()
529 while (fis.read(b) > 0) { in testFileEntryFromFile()
532 fis.close(); in testFileEntryFromFile()
533 fis = null; in testFileEntryFromFile()
551 if (fis != null) { in testFileEntryFromFile()
552 fis.close(); in testFileEntryFromFile()
565 FileInputStream fis = null; in testExplicitFileEntry() local
575 fis = new FileInputStream(tmp[1]); in testExplicitFileEntry()
576 while (fis.read(b) > 0) { in testExplicitFileEntry()
[all …]
DSevenZTestCase.java208 FileInputStream fis = null; in copy() local
210 fis = new FileInputStream(src); in copy()
213 while ((bytesRead = fis.read(buffer)) >= 0) { in copy()
217 if (fis != null) { in copy()
218 fis.close(); in copy()
DArchiveStreamFactoryTest.java67 try (FileInputStream fis = new FileInputStream("src/test/resources/testAIFF.aif")) { in aiffFilesAreNoTARs() argument
68 try (InputStream is = new BufferedInputStream(fis)) { in aiffFilesAreNoTARs()
79 try (FileInputStream fis = new FileInputStream("src/test/resources/testCompress209.doc")) { in testCOMPRESS209() argument
80 try (InputStream bis = new BufferedInputStream(fis)) { in testCOMPRESS209()
110 try (FileInputStream fis = new FileInputStream("src/test/resources/bla.7z")) { in detectsAndThrowsFor7z() argument
111 try (InputStream bis = new BufferedInputStream(fis)) { in detectsAndThrowsFor7z()
127 try (FileInputStream fis = new FileInputStream("src/test/resources/COMPRESS-208.zip")) { in skipsPK00Prefix() argument
128 try (InputStream bis = new BufferedInputStream(fis)) { in skipsPK00Prefix()
/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowLinuxTest.java62 try (FileInputStream fis = new FileInputStream(file)) { in pread_validateExtractsContentWithOffset() argument
63 FileDescriptor fd = fis.getFD(); in pread_validateExtractsContentWithOffset()
81 try (FileInputStream fis = new FileInputStream(file)) { in pread_handleFNF() argument
82 FileDescriptor fd = fis.getFD(); in pread_handleFNF()
86 fis.close(); in pread_handleFNF()
97 try (FileInputStream fis = new FileInputStream(file)) { in pread_readPastEnd() argument
98 FileDescriptor fd = fis.getFD(); in pread_readPastEnd()
/external/google-smali/smali/src/main/java/com/android/tools/smali/smali/
DSmali.java195 FileInputStream fis = null; in assembleSmaliFile() local
197 fis = new FileInputStream(smaliFile); in assembleSmaliFile()
198 InputStreamReader reader = new InputStreamReader(fis, "UTF-8"); in assembleSmaliFile()
254 if (fis != null) { in assembleSmaliFile()
255 fis.close(); in assembleSmaliFile()
262 FileInputStream fis = null; in printTokensForSingleFile() local
264 fis = new FileInputStream(smaliFile); in printTokensForSingleFile()
265 InputStreamReader reader = new InputStreamReader(fis, "UTF-8"); in printTokensForSingleFile()
290 if (fis != null) { in printTokensForSingleFile()
291 fis.close(); in printTokensForSingleFile()
/external/apache-xml/src/main/java/org/apache/xalan/xslt/
DObjectFactory.java296 FileInputStream fis = null; in lookUpFactoryClassName() local
321 fis = ss.getFileInputStream(propertiesFile); in lookUpFactoryClassName()
322 fXalanProperties.load(fis); in lookUpFactoryClassName()
333 if (fis != null) { in lookUpFactoryClassName()
335 fis.close(); in lookUpFactoryClassName()
346 FileInputStream fis = null; in lookUpFactoryClassName() local
348 fis = ss.getFileInputStream(new File(propertiesFilename)); in lookUpFactoryClassName()
350 props.load(fis); in lookUpFactoryClassName()
359 if (fis != null) { in lookUpFactoryClassName()
361 fis.close(); in lookUpFactoryClassName()
/external/apache-xml/src/main/java/org/apache/xpath/functions/
DObjectFactory.java296 FileInputStream fis = null; in lookUpFactoryClassName() local
321 fis = ss.getFileInputStream(propertiesFile); in lookUpFactoryClassName()
322 fXalanProperties.load(fis); in lookUpFactoryClassName()
333 if (fis != null) { in lookUpFactoryClassName()
335 fis.close(); in lookUpFactoryClassName()
346 FileInputStream fis = null; in lookUpFactoryClassName() local
348 fis = ss.getFileInputStream(new File(propertiesFilename)); in lookUpFactoryClassName()
350 props.load(fis); in lookUpFactoryClassName()
359 if (fis != null) { in lookUpFactoryClassName()
361 fis.close(); in lookUpFactoryClassName()
/external/apache-xml/src/main/java/org/apache/xml/utils/
DObjectFactory.java296 FileInputStream fis = null; in lookUpFactoryClassName() local
321 fis = ss.getFileInputStream(propertiesFile); in lookUpFactoryClassName()
322 fXalanProperties.load(fis); in lookUpFactoryClassName()
333 if (fis != null) { in lookUpFactoryClassName()
335 fis.close(); in lookUpFactoryClassName()
346 FileInputStream fis = null; in lookUpFactoryClassName() local
348 fis = ss.getFileInputStream(new File(propertiesFilename)); in lookUpFactoryClassName()
350 props.load(fis); in lookUpFactoryClassName()
359 if (fis != null) { in lookUpFactoryClassName()
361 fis.close(); in lookUpFactoryClassName()
/external/apache-xml/src/main/java/org/apache/xml/serializer/
DObjectFactory.java295 FileInputStream fis = null; in lookUpFactoryClassName() local
320 fis = ss.getFileInputStream(propertiesFile); in lookUpFactoryClassName()
321 fXalanProperties.load(fis); in lookUpFactoryClassName()
332 if (fis != null) { in lookUpFactoryClassName()
334 fis.close(); in lookUpFactoryClassName()
345 FileInputStream fis = null; in lookUpFactoryClassName() local
347 fis = ss.getFileInputStream(new File(propertiesFilename)); in lookUpFactoryClassName()
349 props.load(fis); in lookUpFactoryClassName()
358 if (fis != null) { in lookUpFactoryClassName()
360 fis.close(); in lookUpFactoryClassName()
/external/apache-xml/src/main/java/org/apache/xml/dtm/
DObjectFactory.java296 FileInputStream fis = null; in lookUpFactoryClassName() local
321 fis = ss.getFileInputStream(propertiesFile); in lookUpFactoryClassName()
322 fXalanProperties.load(fis); in lookUpFactoryClassName()
333 if (fis != null) { in lookUpFactoryClassName()
335 fis.close(); in lookUpFactoryClassName()
346 FileInputStream fis = null; in lookUpFactoryClassName() local
348 fis = ss.getFileInputStream(new File(propertiesFilename)); in lookUpFactoryClassName()
350 props.load(fis); in lookUpFactoryClassName()
359 if (fis != null) { in lookUpFactoryClassName()
361 fis.close(); in lookUpFactoryClassName()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/compressors/
DGZipTestCase.java145 try (FileInputStream fis = new FileInputStream(getFile("test3.xml"))) { in testInteroperabilityWithGzipCompressorInputStream() argument
146 content = IOUtils.toByteArray(fis); in testInteroperabilityWithGzipCompressorInputStream()
171 try (FileInputStream fis = new FileInputStream(getFile("test3.xml"))) { in testInteroperabilityWithGZIPInputStream() argument
172 content = IOUtils.toByteArray(fis); in testInteroperabilityWithGZIPInputStream()
214 try (FileInputStream fis = new FileInputStream(getFile("test3.xml"))) { in testExtraFlags() argument
215 content = IOUtils.toByteArray(fis); in testExtraFlags()
267 …am out = new GzipCompressorOutputStream(bout, parameters); FileInputStream fis = new FileInputStre… in testMetadataRoundTrip() argument
269 IOUtils.copy(fis, out); in testMetadataRoundTrip()
/external/conscrypt/common/src/main/java/org/conscrypt/
DKeyManagerFactoryImpl.java80 FileInputStream fis = null; in engineInit() local
82 fis = new FileInputStream(new File(keyStoreName)); in engineInit()
83 keyStore.load(fis, pwd); in engineInit()
91 IoUtils.closeQuietly(fis); in engineInit()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DKeyManagerFactoryImpl.java82 FileInputStream fis = null; in engineInit() local
84 fis = new FileInputStream(new File(keyStoreName)); in engineInit()
85 keyStore.load(fis, pwd); in engineInit()
93 IoUtils.closeQuietly(fis); in engineInit()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/tar/
DTarLister.java46 final InputStream fis = new BufferedInputStream(new FileInputStream(f)); in main() local
49 ais = new TarArchiveInputStream(fis, args[1]); in main()
51 ais = new TarArchiveInputStream(fis); in main()
59 fis.close(); in main()
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/
DANTLRFileStream.java59 FileInputStream fis = new FileInputStream(fileName); in load() local
61 isr = new InputStreamReader(fis, encoding); in load()
64 isr = new InputStreamReader(fis); in load()
/external/smali/smali/src/main/java/org/jf/smali/
DSmali.java151 FileInputStream fis = null; in assembleSmaliFile() local
153 fis = new FileInputStream(smaliFile); in assembleSmaliFile()
154 InputStreamReader reader = new InputStreamReader(fis, "UTF-8"); in assembleSmaliFile()
204 if (fis != null) { in assembleSmaliFile()
205 fis.close(); in assembleSmaliFile()
/external/antlr/runtime/JavaScript/src/org/antlr/runtime/
DANTLRFileStream.js51 fis = new java.io.FileInputStream(f);
53 isr = new java.io.InputStreamReader(fis, encoding);
55 isr = new java.io.InputStreamReader(fis);
/external/slf4j/slf4j-migrator/src/main/java/org/slf4j/migrator/
DInplaceFileConverter.java56 FileInputStream fis = new FileInputStream(file); in readIntoByteArray() local
60 while ((n = fis.read(buffer)) != -1) { in readIntoByteArray()
64 fis.close(); in readIntoByteArray()
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/util/
DXMLValidator.java310 FileInputStream fis = null; in checkForBOM() local
312 fis = new FileInputStream(f); in checkForBOM()
314 if (fis.read(bytes) == 3 && in checkForBOM()
322 if (fis != null) { in checkForBOM()
323 fis.close(); in checkForBOM()
/external/apache-velocity-engine/velocity-engine-core/src/test/java/org/apache/velocity/test/
DClassloaderChangeTestCase.java152 InputStream fis = getClass().getResourceAsStream("/" + testclass); in TestClassloader() local
153 IOUtils.copy(fis, os); in TestClassloader()
154 fis.close(); in TestClassloader()

1234