Home
last modified time | relevance | path

Searched defs:try (Results 1 – 25 of 341) sorted by relevance

12345678910>>...14

/external/apache-commons-compress/src/test/java/org/apache/commons/compress/compressors/lz4/
DFramedLZ4CompressorInputStreamTest.java45 try (FileInputStream in = new FileInputStream(input)) { in testMatches() method
55try (InputStream a = new FramedLZ4CompressorInputStream(new FileInputStream(getFile("bla.tar.lz4")… in readBlaLz4() method
65 try (InputStream a = new CompressorStreamFactory() in readBlaLz4ViaFactory() method
77 try (InputStream a = new CompressorStreamFactory() in readBlaLz4ViaFactoryAutoDetection() method
88try (InputStream a = new FramedLZ4CompressorInputStream(new FileInputStream(getFile("bla.tar.lz4")… in readBlaLz4WithDecompressConcatenated() method
128 try (InputStream a = new CompressorStreamFactory() in readBlaLz4ViaFactoryWithDecompressConcatenated() method
174try (InputStream a = new FramedLZ4CompressorInputStream(new FileInputStream(getFile("bla.dump.lz4"… in readBlaDumpLz4() method
184try (InputStream a = new FramedLZ4CompressorInputStream(new FileInputStream(getFile("bla.tar")))) { in rejectsNonLZ4Stream() method
195try (InputStream a = new FramedLZ4CompressorInputStream(new ByteArrayInputStream(input))) { in rejectsFileWithoutFrameDescriptor() method
210try (InputStream a = new FramedLZ4CompressorInputStream(new ByteArrayInputStream(input))) { in rejectsFileWithoutBlockSizeByte() method
[all …]
/external/tensorflow/tensorflow/java/src/test/java/org/tensorflow/
DTensorTest.java52 try (Tensor<String> t = Tensors.create(strings)) { in createWithByteBuffer() method
60 try (Tensor<Boolean> t = Tensor.create(Boolean.class, bools_shape, ByteBuffer.wrap(bools_))) { in createWithByteBuffer() method
68 try (Tensor<String> t = in createWithByteBuffer() method
78 try (Tensor<Double> t = Tensor.create(Double.class, doubles_shape, buf)) { in createWithByteBuffer() method
85 try (Tensor<Boolean> t = in createWithByteBuffer() method
105 try (Tensor<Double> t = Tensor.create(new long[] {doubles.length}, buf)) { in createFromBufferWithNonNativeByteOrder() method
121 try (Tensor<Double> t = Tensor.create(shape, DoubleBuffer.wrap(doubles))) { in createWithTypedBuffer() method
125 try (Tensor<Float> t = Tensor.create(shape, FloatBuffer.wrap(floats))) { in createWithTypedBuffer() method
129 try (Tensor<Integer> t = Tensor.create(shape, IntBuffer.wrap(ints))) { in createWithTypedBuffer() method
133 try (Tensor<Long> t = Tensor.create(shape, LongBuffer.wrap(longs))) { in createWithTypedBuffer() method
[all …]
DSessionTest.java33 try (Graph g = new Graph(); in runUsingOperationNames() method
36 try (Tensor<Integer> x = Tensors.create(new int[][] {{5}, {7}}); in runUsingOperationNames() method
48 try (Graph g = new Graph(); in runUsingOperationHandles() method
53 try (Tensor<Integer> x = Tensors.create(new int[][] {{5}, {7}}); in runUsingOperationHandles() method
65 try (Graph g = new Graph(); in runUsingColonSeparatedNames() method
79 try (Tensor<Integer> fetched = in runUsingColonSeparatedNames() method
85 try (Tensor<Integer> fed = Tensors.create(new int[] {4, 3, 2, 1}); in runUsingColonSeparatedNames() method
102 try (Graph g = new Graph(); in runWithMetadata() method
105 try (Tensor<Integer> x = Tensors.create(new int[][] {{5}, {7}})) { in runWithMetadata() method
132 try (Graph g = new Graph(); in runMultipleOutputs() method
[all …]
DGraphTest.java37 try (Graph g = new Graph()) { in graphDefRoundTrip() method
42 try (Graph g = new Graph()) { in graphDefRoundTrip() method
46 try (Graph g = new Graph()) { in graphDefRoundTrip() method
79 try (Graph g = new Graph()) { in iterateOverOperations() method
107 try (Graph g = new Graph()) { in failImportOnInvalidGraphDefs() method
135 try (Graph g = new Graph(); in addGradientsToGraph() method
155 try (Tensor<Float> c1 = Tensors.create(3.0f); in addGradientsToGraph() method
176 try (Graph g = new Graph(); in addGradientSumsToGraph() method
188 try (Tensor<Float> c = Tensors.create(3.0f); in addGradientSumsToGraph() method
202 try (Graph g = new Graph(); in addGradientsWithInitialValuesToGraph() method
[all …]
DOperationTest.java37 try (Graph g = new Graph()) { in outputListLengthFailsOnInvalidName() method
57 try (Graph g = new Graph()) { in operationEquality() method
72 try (Graph g = new Graph()) { in operationEquality() method
80 try (Graph g = new Graph()) { in operationCollection() method
97 try (Graph g = new Graph()) { in operationToString() method
105 try (Graph g = new Graph()) { in outputEquality() method
118 try (Graph g = new Graph()) { in outputCollection() method
133 try (Graph g = new Graph()) { in outputToString() method
158 try (Graph g = new Graph()) { in outputList() method
170 try (Graph g = new Graph()) { in split() method
[all …]
DOperationBuilderTest.java35 try (Graph g1 = new Graph(); in failWhenMixingOperationsOnDifferentGraphs() method
50 try (Graph g = new Graph(); in failOnUseAfterBuild() method
66 try (Graph g = new Graph(); in failOnUseAfterGraphClose() method
86 try (Graph g = new Graph()) { in setAttr() method
88 try (Tensor<Integer> t = Tensors.create(1)) { in setAttr() method
129 try (Graph g = new Graph()) { in setAttrShape() method
166 try (Graph g = new Graph(); in addControlInput() method
192 try (Graph g = new Graph(); in testSetAttrShapeList() method
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/utils/
DBitInputStreamTest.java33 try (final BitInputStream bis = new BitInputStream(getStream(), ByteOrder.LITTLE_ENDIAN)) { in shouldNotAllowReadingOfANegativeAmountOfBits() method
40 try (final BitInputStream bis = new BitInputStream(getStream(), ByteOrder.LITTLE_ENDIAN)) { in shouldNotAllowReadingOfMoreThan63BitsAtATime() method
47 try (final BitInputStream bis = new BitInputStream(getStream(), ByteOrder.LITTLE_ENDIAN)) { in testReading24BitsInLittleEndian() method
54 try (final BitInputStream bis = new BitInputStream(getStream(), ByteOrder.BIG_ENDIAN)) { in testReading24BitsInBigEndian() method
61 try (final BitInputStream bis = new BitInputStream(getStream(), ByteOrder.LITTLE_ENDIAN)) { in testReading17BitsInLittleEndian() method
68 try (final BitInputStream bis = new BitInputStream(getStream(), ByteOrder.BIG_ENDIAN)) { in testReading17BitsInBigEndian() method
76 try (final BitInputStream bis = new BitInputStream(getStream(), ByteOrder.LITTLE_ENDIAN)) { in testReading30BitsInLittleEndian() method
83 try (final BitInputStream bis = new BitInputStream(getStream(), ByteOrder.BIG_ENDIAN)) { in testReading30BitsInBigEndian() method
91 try (final BitInputStream bis = new BitInputStream(getStream(), ByteOrder.LITTLE_ENDIAN)) { in testReading31BitsInLittleEndian() method
98 try (final BitInputStream bis = new BitInputStream(getStream(), ByteOrder.BIG_ENDIAN)) { in testReading31BitsInBigEndian() method
[all …]
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/examples/
DExpanderTest.java75 try (InputStream i = new BufferedInputStream(Files.newInputStream(archive.toPath()))) { in sevenZInputStreamVersion() method
83 try (InputStream i = new BufferedInputStream(Files.newInputStream(archive.toPath()))) { in sevenZInputStreamVersionWithAutoDetection() method
91 try (SeekableByteChannel c = FileChannel.open(archive.toPath(), StandardOpenOption.READ)) { in sevenZChannelVersion() method
100 try (SevenZFile f = new SevenZFile(archive)) { in sevenZFileVersion() method
109 try (ZipFile f = new ZipFile(archive)) { in zipFileVersion() method
118 try (ZipFile f = new ZipFile(archive)) { in fileCantEscapeViaAbsolutePath() method
129 try (ZipFile f = new ZipFile(archive)) { in fileCantEscapeDoubleDotPath() method
146 try (ZipFile f = new ZipFile(archive)) { in fileCantEscapeDoubleDotPathWithSimilarSibling() method
157 try (OutputStream o = Files.newOutputStream(dummy.toPath())) { in setup7z() method
160 try (SevenZOutputFile aos = new SevenZOutputFile(archive)) { in setup7z() method
[all …]
DParameterizedExpanderTest.java74 try (OutputStream o = Files.newOutputStream(dummy.toPath())) { in setUp() method
77 try (ArchiveOutputStream aos = new ArchiveStreamFactory() in setUp() method
109 try (InputStream i = new BufferedInputStream(Files.newInputStream(archive.toPath()))) { in inputStreamVersion() method
117 try (InputStream i = new BufferedInputStream(Files.newInputStream(archive.toPath()))) { in inputStreamVersionWithAutoDetection() method
125 try (SeekableByteChannel c = FileChannel.open(archive.toPath(), StandardOpenOption.READ)) { in channelVersion() method
133 try (InputStream i = new BufferedInputStream(Files.newInputStream(archive.toPath())); in archiveInputStreamVersion() method
151 try (InputStream is = Files.newInputStream(new File(resultDir, fileName).toPath())) { in assertHelloWorld() method
/external/tensorflow/tensorflow/java/src/test/java/org/tensorflow/op/core/
DConstantTest.java47 try (Graph g = new Graph(); in createInt() method
51 try (Tensor<Integer> result = sess.runner().fetch(op).run().get(0).expect(Integer.class)) { in createInt() method
62 try (Graph g = new Graph(); in createIntBuffer() method
66 try (Tensor<?> result = sess.runner().fetch(op).run().get(0)) { in createIntBuffer() method
77 try (Graph g = new Graph(); in createFloat() method
81 try (Tensor<?> result = sess.runner().fetch(op).run().get(0)) { in createFloat() method
92 try (Graph g = new Graph(); in createFloatBuffer() method
96 try (Tensor<?> result = sess.runner().fetch(op).run().get(0)) { in createFloatBuffer() method
107 try (Graph g = new Graph(); in createDouble() method
111 try (Tensor<?> result = sess.runner().fetch(op).run().get(0)) { in createDouble() method
[all …]
DZerosTest.java38 try (Graph g = new Graph(); in createIntZeros() method
43 try (Tensor<?> result = sess.runner().fetch(op).run().get(0)) { in createIntZeros() method
56 try (Graph g = new Graph(); in createFloatZeros() method
61 try (Tensor<?> result = sess.runner().fetch(op.asOutput()).run().get(0)) { in createFloatZeros() method
74 try (Graph g = new Graph(); in createDoubleZeros() method
79 try (Tensor<?> result = sess.runner().fetch(op.asOutput()).run().get(0)) { in createDoubleZeros() method
92 try (Graph g = new Graph(); in createLongZeros() method
97 try (Tensor<?> result = sess.runner().fetch(op.asOutput()).run().get(0)) { in createLongZeros() method
110 try (Graph g = new Graph(); in createBooleanZeros() method
115 try (Tensor<?> result = sess.runner().fetch(op.asOutput()).run().get(0)) { in createBooleanZeros() method
[all …]
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/compressors/snappy/
DFramedSnappyCompressorInputStreamTest.java44 try (FileInputStream in = new FileInputStream(input)) { in testMatches() method
59 try (FileInputStream isSz = new FileInputStream(getFile("lorem-ipsum.txt.sz"))) { in testLoremIpsum() method
71 try (FileInputStream isGz = new FileInputStream(getFile("lorem-ipsum.txt.gz"))) { in testLoremIpsum() method
85 try (FileInputStream sz = new FileInputStream(outputSz)) { in testLoremIpsum() method
86 try (FileInputStream gz = new FileInputStream(outputGz)) { in testLoremIpsum() method
96 try (FileInputStream isSz = new FileInputStream(getFile("mixed.txt.sz"))) { in testRemainingChunkTypes() method
115 try (FileInputStream isSz = new FileInputStream(getFile("mixed.txt.sz"))) { in testAvailable() method
154 try (ZipFile zip = new ZipFile(getFile("testNumbersNew.numbers"))) { in readIWAFile() method
155 try (InputStream is = zip.getInputStream(zip.getEntry("Index/Document.iwa"))) { in readIWAFile() method
178 try (InputStream is = new FileInputStream(getFile("COMPRESS-358.iwa")); in readIWAFileWithBiggerOffset() method
[all …]
/external/jacoco/org.jacoco.core.test/src-java7/org/jacoco/core/test/filter/targets/
DTryWithResources.java38 try ( // $line-test.try$ in test() method
55 try ( // $line-test2.try$ in test2() method
71 try ( // $line-returnInBody.try$ in returnInBody() method
79 try ( // $line-nested.try1$ in nested() method
83 try ( // $line-nested.try2$ in nested() method
99 try ( // $line-nested.try3$ in nested() method
120 try ( // $line-returnInCatch.try1$ in returnInCatch() method
167 try ( // $line-empty.try$ in empty() method
197 try ( // $line-throwInBody.try$ in throwInBody() method
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/compressors/
DXZTestCase.java43 try (OutputStream out = new FileOutputStream(output)) { in testXZCreation() method
44 try (CompressorOutputStream cos = new CompressorStreamFactory() in testXZCreation() method
55 try (InputStream is = new FileInputStream(input)) { in testXZUnarchive() method
74 try (InputStream is = new FileInputStream(input)) { in testConcatenatedStreamsReadFirstOnly() method
75 try (CompressorInputStream in = new CompressorStreamFactory() in testConcatenatedStreamsReadFirstOnly() method
86 try (InputStream is = new FileInputStream(input)) { in testConcatenatedStreamsReadFully() method
87 try (CompressorInputStream in = new XZCompressorInputStream(is, true)) { in testConcatenatedStreamsReadFully() method
DLZMATestCase.java41 try (OutputStream out = new FileOutputStream(compressed)) { in lzmaRoundtrip() method
42 try (CompressorOutputStream cos = new CompressorStreamFactory() in lzmaRoundtrip() method
48 try (InputStream is = new FileInputStream(input)) { in lzmaRoundtrip() method
52 try (InputStream is = new FileInputStream(compressed); in lzmaRoundtrip() method
63 try (InputStream is = new FileInputStream(input)) { in testLZMAUnarchive() method
73 try (InputStream is = new BufferedInputStream(new FileInputStream(input))) { in testLZMAUnarchiveWithAutodetection() method
83 try (InputStream is = new FileInputStream(input)) { in singleByteReadConsistentlyReturnsMinusOneAtEof() method
97 try (InputStream is = new FileInputStream(input)) { in multiByteReadConsistentlyReturnsMinusOneAtEof() method
DGZipTestCase.java48 try (OutputStream out = new FileOutputStream(output)) { in testGzipCreation() method
49 try (CompressorOutputStream cos = new CompressorStreamFactory() in testGzipCreation() method
60 try (InputStream is = new FileInputStream(input)) { in testGzipUnarchive() method
79 try (InputStream is = new FileInputStream(input)) { in testConcatenatedStreamsReadFirstOnly() method
80 try (CompressorInputStream in = new CompressorStreamFactory() in testConcatenatedStreamsReadFirstOnly() method
91 try (InputStream is = new FileInputStream(input)) { in testConcatenatedStreamsReadFully() method
92 try (CompressorInputStream in = new GzipCompressorInputStream(is, true)) { in testConcatenatedStreamsReadFully() method
145 try (FileInputStream fis = new FileInputStream(getFile("test3.xml"))) { in testInteroperabilityWithGzipCompressorInputStream() method
171 try (FileInputStream fis = new FileInputStream(getFile("test3.xml"))) { in testInteroperabilityWithGZIPInputStream() method
214 try (FileInputStream fis = new FileInputStream(getFile("test3.xml"))) { in testExtraFlags() method
[all …]
DFramedSnappyTestCase.java74 try (FileInputStream is = new FileInputStream(input)) { in testUnarchive() method
91 try (FileInputStream written = new FileInputStream(output)) { in testUnarchive() method
92 try (FileInputStream orig = new FileInputStream(original)) { in testUnarchive() method
110 try (FileOutputStream fs = new FileOutputStream(input)) { in testRoundtripWithOneBigWrite() method
117 try (FileInputStream is = new FileInputStream(input); in testRoundtripWithOneBigWrite() method
127 try (FileInputStream is = new FileInputStream(input); in testRoundtripWithOneBigWrite() method
139 try (FileInputStream is = new FileInputStream(input); in testRoundtrip() method
147 try (FileInputStream is = new FileInputStream(input); in testRoundtrip() method
DPack200TestCase.java70 try (InputStream is = useFile in jarUnarchiveAll() method
112 try (OutputStream out = new Pack200CompressorOutputStream(new FileOutputStream(output), in jarArchiveCreation() method
128 try (InputStream is = new Pack200CompressorInputStream(output)) { in jarArchiveCreation() method
141 try (InputStream is = new FileInputStream(getFile("bla.pack"))) { in testGoodSignature() method
150 try (InputStream is = new FileInputStream(getFile("bla.jar"))) { in testBadSignature() method
159 try (InputStream is = new FileInputStream(getFile("bla.pack"))) { in testShortSignature() method
170try (InputStream is = new Pack200CompressorInputStream(new FileInputStream(getFile("bla.jar")), in testInputStreamMethods() method
194 try (OutputStream out = new FileOutputStream(output)) { in testOutputStreamMethods() method
214 try (final Pack200CompressorInputStream in = new Pack200CompressorInputStream(input, s)) { in singleByteReadConsistentlyReturnsMinusOneAtEof() method
235 try (final Pack200CompressorInputStream in = new Pack200CompressorInputStream(input, s)) { in multiByteReadConsistentlyReturnsMinusOneAtEof() method
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowContextTest.java95 try (FileOutputStream fos = new FileOutputStream(cacheTest)) { in shouldWriteToCacheDir() method
111 try (FileOutputStream fos = new FileOutputStream(cacheTest)) { in shouldWriteToExternalCacheDir() method
158 try (Writer fileWriter = Files.newBufferedWriter(file.toPath(), UTF_8)) { in openFileInput_shouldReturnAFileInputStream() method
162 try (FileInputStream fileInputStream = context.openFileInput("__test__")) { in openFileInput_shouldReturnAFileInputStream() method
171try (FileInputStream fileInputStream = context.openFileInput("data" + File.separator + "test")) {} in openFileInput_shouldNotAcceptPathsWithSeparatorCharacters() method
178try (FileOutputStream fileOutputStream = context.openFileOutput("__test__", Context.MODE_PRIVATE))… in openFileOutput_shouldReturnAFileOutputStream() method
181try (FileInputStream fileInputStream = new FileInputStream(new File(context.getFilesDir(), file.ge… in openFileOutput_shouldReturnAFileOutputStream() method
190try (FileOutputStream fos = context.openFileOutput(File.separator + "data" + File.separator + "tes… in openFileOutput_shouldNotAcceptPathsWithSeparatorCharacters() method
199try (FileOutputStream fileOutputStream = context.openFileOutput("__test__", Context.MODE_APPEND)) { in openFileOutput_shouldAppendData() method
202try (FileOutputStream fileOutputStream = context.openFileOutput("__test__", Context.MODE_APPEND)) { in openFileOutput_shouldAppendData() method
[all …]
/external/archive-patcher/generator/src/test/java/com/google/archivepatcher/generator/bsdiff/
DRandomAccessObjectTest.java40 try (RandomAccessObject obj = new RandomAccessObject.RandomAccessFileObject(tmpFile, "r")) { in fileLengthTest() method
49 try (RandomAccessObject obj = new RandomAccessObject.RandomAccessByteArrayObject(BLOB)) { in byteArrayLengthTest() method
58 try (RandomAccessObject obj = in mmapLengthTest() method
70 try (RandomAccessObject obj = new RandomAccessObject.RandomAccessFileObject(tmpFile, "r")) { in fileReadByteTest() method
89 try (RandomAccessObject obj = new RandomAccessObject.RandomAccessByteArrayObject(bytes)) { in byteArrayReadByteTest() method
107 try (RandomAccessObject obj = new RandomAccessObject.RandomAccessByteArrayObject(bytes)) { in byteArrayReadUnsignedByteTest() method
124 try (RandomAccessObject obj = in mmapReadByteTest() method
144 try (RandomAccessObject obj = new RandomAccessObject.RandomAccessFileObject(tmpFile, "rw")) { in fileWriteByteTest() method
178 try (RandomAccessObject obj = new RandomAccessObject.RandomAccessFileObject(tmpFile, "rw")) { in fileWriteByteToEmptyFileTest() method
197 try (RandomAccessObject obj = in byteArrayWriteByteTest() method
[all …]
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/compressors/deflate64/
DDeflate64CompressorInputStreamTest.java92try (Deflate64CompressorInputStream input = new Deflate64CompressorInputStream(new ByteArrayInputS… in uncompressedBlock() method
106 try (InputStream input = new CompressorStreamFactory() in uncompressedBlockViaFactory() method
121try (Deflate64CompressorInputStream input = new Deflate64CompressorInputStream(new ByteArrayInputS… in uncompressedBlockAvailable() method
135try (Deflate64CompressorInputStream input = new Deflate64CompressorInputStream(new ByteArrayInputS… in streamIgnoresExtraBytesAfterDeflatedInput() method
150try (Deflate64CompressorInputStream input = new Deflate64CompressorInputStream(new ByteArrayInputS… in throwsEOFExceptionOnTruncatedStreams() method
158 try (final Deflate64CompressorInputStream in = in singleByteReadConsistentlyReturnsMinusOneAtEof() method
170 try (final Deflate64CompressorInputStream in = in multiByteReadConsistentlyReturnsMinusOneAtEof() method
/external/cldr/tools/java/org/unicode/cldr/tool/
DGenerateSubdivisions.java88try (PrintWriter pw = FileUtilities.openUTF8Writer(CLDRPaths.GEN_DIRECTORY, "subdivision/" + sourc… in main() method
101try (PrintWriter pw = FileUtilities.openUTF8Writer(CLDRPaths.GEN_DIRECTORY, "subdivision/subdivisi… in main() method
104try (PrintWriter pw = FileUtilities.openUTF8Writer(CLDRPaths.GEN_DIRECTORY, "subdivision/subdivisi… in main() method
107try (PrintWriter pw = FileUtilities.openUTF8Writer(CLDRPaths.GEN_DIRECTORY, "subdivision/en.xml"))… in main() method
110try (PrintWriter pw = FileUtilities.openUTF8Writer(CLDRPaths.GEN_DIRECTORY, "subdivision/categorie… in main() method
113try (PrintWriter pw = FileUtilities.openUTF8Writer(CLDRPaths.GEN_DIRECTORY, "subdivision/en.txt"))… in main() method
116try (PrintWriter pw = FileUtilities.openUTF8Writer(CLDRPaths.GEN_DIRECTORY, "subdivision/en-full.t… in main() method
119try (PrintWriter pw = FileUtilities.openUTF8Writer(CLDRPaths.GEN_DIRECTORY, "subdivision/missing-m… in main() method
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/sevenz/
DSevenZFileTest.java109 try (SevenZFile archive = new SevenZFile(getFile("7z-empty-mhc-off.7z"))) { in testAllEmptyFilesArchive() method
180 try (SevenZFile sevenZFile = new SevenZFile(getFile("COMPRESS-256.7z"))) { in testCompressedHeaderWithNonDefaultDictionarySize() method
207 try (SevenZOutputFile outArchive = new SevenZOutputFile(output)) { in testReadingBackLZMA2DictSize() method
216 try (SevenZFile archive = new SevenZFile(output)) { in testReadingBackLZMA2DictSize() method
227 try (SevenZOutputFile outArchive = new SevenZOutputFile(output)) { in testReadingBackDeltaDistance() method
237 try (SevenZFile archive = new SevenZFile(output)) { in testReadingBackDeltaDistance() method
247 try (SevenZFile sevenZFile = new SevenZFile(getFile("bla.7z"))) { in getEntriesOfUnarchiveTest() method
261 try (FileInputStream fis = new FileInputStream(getFile("bla.7z"))) { in getEntriesOfUnarchiveInMemoryTest() method
264 try (SevenZFile sevenZFile = new SevenZFile(new SeekableInMemoryByteChannel(data))) { in getEntriesOfUnarchiveInMemoryTest() method
280 try (SevenZFile sevenZFile = new SevenZFile(getFile("COMPRESS-348.7z"))) { in readEntriesOfSize0() method
[all …]
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/ar/
DArArchiveInputStreamTest.java45 try (final FileInputStream fis = new FileInputStream(getFile(archive)); in checkLongNameEntry() method
65 try (FileInputStream in = new FileInputStream(getFile("bla.ar")); in singleByteReadConsistentlyReturnsMinusOneAtEof() method
77 try (FileInputStream in = new FileInputStream(getFile("bla.ar")); in multiByteReadConsistentlyReturnsMinusOneAtEof() method
88 try (FileInputStream in = new FileInputStream(getFile("bla.ar")); in cantReadWithoutOpeningAnEntry() method
96 try (FileInputStream in = new FileInputStream(getFile("bla.ar")); in cantReadAfterClose() method
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/compressors/zstandard/
DZstdCompressorInputStreamTest.java49 try (InputStream inputStream = new FileInputStream(input); in testZstdDecode() method
95 try (InputStream is = new FileInputStream(input)) { in shouldBeAbleToSkipAByte() method
113 try (InputStream ois = new FileInputStream(original)) { in singleByteReadWorksAsExpected() method
117 try (InputStream is = new FileInputStream(input)) { in singleByteReadWorksAsExpected() method
129 try (InputStream is = new FileInputStream(input)) { in singleByteReadConsistentlyReturnsMinusOneAtEof() method
143 try (InputStream is = new FileInputStream(input)) { in multiByteReadConsistentlyReturnsMinusOneAtEof() method
157 try (InputStream is = new FileInputStream(input)) { in testZstandardUnarchive() method

12345678910>>...14