Home
last modified time | relevance | path

Searched refs:FileInputStream (Results 1 – 25 of 340) sorted by relevance

12345678910>>...14

/external/apache-commons-compress/src/test/java/org/apache/commons/compress/compressors/snappy/
DFramedSnappyCompressorInputStreamTest.java26 import java.io.FileInputStream;
44 try (FileInputStream in = new FileInputStream(input)) { in testMatches()
59 try (FileInputStream isSz = new FileInputStream(getFile("lorem-ipsum.txt.sz"))) { in testLoremIpsum()
71 try (FileInputStream isGz = new FileInputStream(getFile("lorem-ipsum.txt.gz"))) { in testLoremIpsum()
85 try (FileInputStream sz = new FileInputStream(outputSz)) { in testLoremIpsum()
86 try (FileInputStream gz = new FileInputStream(outputGz)) { in testLoremIpsum()
96 try (FileInputStream isSz = new FileInputStream(getFile("mixed.txt.sz"))) { in testRemainingChunkTypes()
115 try (FileInputStream isSz = new FileInputStream(getFile("mixed.txt.sz"))) { in testAvailable()
178 try (InputStream is = new FileInputStream(getFile("COMPRESS-358.iwa")); in readIWAFileWithBiggerOffset()
184 try (FileInputStream a = new FileInputStream(o); in readIWAFileWithBiggerOffset()
[all …]
/external/sfntly/cpp/src/sfntly/port/
Dfile_input_stream.cc28 FileInputStream::FileInputStream() in FileInputStream() function in sfntly::FileInputStream
34 FileInputStream::~FileInputStream() { in ~FileInputStream()
38 int32_t FileInputStream::Available() { in Available()
42 void FileInputStream::Close() { in Close()
51 void FileInputStream::Mark(int32_t readlimit) { in Mark()
56 bool FileInputStream::MarkSupported() { in MarkSupported()
60 int32_t FileInputStream::Read() { in Read()
79 int32_t FileInputStream::Read(ByteVector* b) { in Read()
83 int32_t FileInputStream::Read(ByteVector* b, int32_t offset, int32_t length) { in Read()
106 void FileInputStream::Reset() { in Reset()
[all …]
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/compressors/
DFramedSnappyTestCase.java25 import java.io.FileInputStream;
74 try (FileInputStream is = new FileInputStream(input)) { in testUnarchive()
91 try (FileInputStream written = new FileInputStream(output)) { in testUnarchive()
92 try (FileInputStream orig = new FileInputStream(original)) { in testUnarchive()
117 try (FileInputStream is = new FileInputStream(input); in testRoundtripWithOneBigWrite()
127 try (FileInputStream is = new FileInputStream(input); in testRoundtripWithOneBigWrite()
129 .createCompressorInputStream("snappy-framed", new FileInputStream(outputSz))) { in testRoundtripWithOneBigWrite()
139 try (FileInputStream is = new FileInputStream(input); in testRoundtrip()
147 try (FileInputStream is = new FileInputStream(input); in testRoundtrip()
149 .createCompressorInputStream("snappy-framed", new FileInputStream(outputSz))) { in testRoundtrip()
DGZipTestCase.java26 import java.io.FileInputStream;
51 IOUtils.copy(new FileInputStream(input), cos); in testGzipCreation()
60 try (InputStream is = new FileInputStream(input)) { in testGzipUnarchive()
79 try (InputStream is = new FileInputStream(input)) { in testConcatenatedStreamsReadFirstOnly()
91 try (InputStream is = new FileInputStream(input)) { in testConcatenatedStreamsReadFully()
110 in = new FileInputStream(getFile("bla.tgz")); in testCorruptedInput()
145 try (FileInputStream fis = new FileInputStream(getFile("test3.xml"))) { in testInteroperabilityWithGzipCompressorInputStream()
171 try (FileInputStream fis = new FileInputStream(getFile("test3.xml"))) { in testInteroperabilityWithGZIPInputStream()
214 try (FileInputStream fis = new FileInputStream(getFile("test3.xml"))) { in testExtraFlags()
267 …out = new GzipCompressorOutputStream(bout, parameters); FileInputStream fis = new FileInputStream(… in testMetadataRoundTrip()
[all …]
DBZip2TestCase.java24 import java.io.FileInputStream;
44 final FileInputStream in = new FileInputStream(input); in testBzipCreation()
53 final InputStream is = new FileInputStream(toDecompress); in testBzipCreation()
69 final InputStream is = new FileInputStream(input); in testBzip2Unarchive()
80 try (InputStream is = new FileInputStream(input)) { in testConcatenatedStreamsReadFirstOnly()
92 try (InputStream is = new FileInputStream(input)) { in testConcatenatedStreamsReadFully()
105 try (InputStream is = new FileInputStream(input)) { in testCOMPRESS131()
DLZMATestCase.java23 import java.io.FileInputStream;
44 IOUtils.copy(new FileInputStream(input), cos); in lzmaRoundtrip()
48 try (InputStream is = new FileInputStream(input)) { in lzmaRoundtrip()
52 try (InputStream is = new FileInputStream(compressed); in lzmaRoundtrip()
63 try (InputStream is = new FileInputStream(input)) { in testLZMAUnarchive()
73 try (InputStream is = new BufferedInputStream(new FileInputStream(input))) { in testLZMAUnarchiveWithAutodetection()
83 try (InputStream is = new FileInputStream(input)) { in singleByteReadConsistentlyReturnsMinusOneAtEof()
97 try (InputStream is = new FileInputStream(input)) { in multiByteReadConsistentlyReturnsMinusOneAtEof()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/compressors/lz4/
DFramedLZ4CompressorInputStreamTest.java27 import java.io.FileInputStream;
45 try (FileInputStream in = new FileInputStream(input)) { in testMatches()
55 …try (InputStream a = new FramedLZ4CompressorInputStream(new FileInputStream(getFile("bla.tar.lz4")… in readBlaLz4()
56 FileInputStream e = new FileInputStream(getFile("bla.tar"))) { in readBlaLz4()
67 new FileInputStream(getFile("bla.tar.lz4"))); in readBlaLz4ViaFactory()
68 FileInputStream e = new FileInputStream(getFile("bla.tar"))) { in readBlaLz4ViaFactory()
78 ….createCompressorInputStream(new BufferedInputStream(new FileInputStream(getFile("bla.tar.lz4")))); in readBlaLz4ViaFactoryAutoDetection()
79 FileInputStream e = new FileInputStream(getFile("bla.tar"))) { in readBlaLz4ViaFactoryAutoDetection()
88 …try (InputStream a = new FramedLZ4CompressorInputStream(new FileInputStream(getFile("bla.tar.lz4")… in readBlaLz4WithDecompressConcatenated()
89 FileInputStream e = new FileInputStream(getFile("bla.tar"))) { in readBlaLz4WithDecompressConcatenated()
[all …]
DBlockLZ4CompressorInputStreamTest.java22 import java.io.FileInputStream;
34 …try (InputStream a = new BlockLZ4CompressorInputStream(new FileInputStream(getFile("bla.tar.block_… in readBlaLz4()
35 FileInputStream e = new FileInputStream(getFile("bla.tar"))) { in readBlaLz4()
45 try (InputStream is = new FileInputStream(input)) { in singleByteReadConsistentlyReturnsMinusOneAtEof()
59 try (InputStream is = new FileInputStream(input)) { in multiByteReadConsistentlyReturnsMinusOneAtEof()
DFactoryTest.java22 import java.io.FileInputStream;
49 try (FileInputStream is = new FileInputStream(input); in roundtripViaFactory()
57 try (FileInputStream is = new FileInputStream(input); in roundtripViaFactory()
59 .createCompressorInputStream(format, new FileInputStream(outputSz))) { in roundtripViaFactory()
DBlockLZ4CompressorRoundtripTest.java22 import java.io.FileInputStream;
61 try (FileInputStream is = new FileInputStream(input); in roundTripTest()
70 try (FileInputStream is = new FileInputStream(input); in roundTripTest()
71 …kLZ4CompressorInputStream sis = new BlockLZ4CompressorInputStream(new FileInputStream(outputSz))) { in roundTripTest()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/ar/
DArArchiveInputStreamTest.java24 import java.io.FileInputStream;
45 try (final FileInputStream fis = new FileInputStream(getFile(archive)); in checkLongNameEntry()
65 try (FileInputStream in = new FileInputStream(getFile("bla.ar")); in singleByteReadConsistentlyReturnsMinusOneAtEof()
77 try (FileInputStream in = new FileInputStream(getFile("bla.ar")); in multiByteReadConsistentlyReturnsMinusOneAtEof()
88 try (FileInputStream in = new FileInputStream(getFile("bla.ar")); in cantReadWithoutOpeningAnEntry()
96 try (FileInputStream in = new FileInputStream(getFile("bla.ar")); in cantReadAfterClose()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/zip/
DZipArchiveInputStreamTest.java32 import java.io.FileInputStream;
52 in = new ZipArchiveInputStream(new FileInputStream(getFile("test-winzip.zip"))); in winzipBackSlashWorkaround()
115 in = new ZipArchiveInputStream(new FileInputStream(getFile("COMPRESS-219.zip"))); in shouldReadNestedZip()
137 …final ZipArchiveInputStream in = new ZipArchiveInputStream(new FileInputStream(getFile("SHRUNK.ZIP… in testUnshrinkEntry()
143 FileInputStream original = new FileInputStream(getFile("test1.xml")); in testUnshrinkEntry()
154 original = new FileInputStream(getFile("test2.xml")); in testUnshrinkEntry()
171 …try (ZipArchiveInputStream in = new ZipArchiveInputStream(new FileInputStream(getFile("COMPRESS-26… in testReadingOfFirstStoredEntry()
186 …try (ZipArchiveInputStream in = new ZipArchiveInputStream(new FileInputStream(getFile("COMPRESS-35… in testMessageWithCorruptFileName()
201 …try (ZipArchiveInputStream in = new ZipArchiveInputStream(new FileInputStream(getFile("bzip2-zip.z… in testUnzipBZip2CompressedEntry()
217 try (FileInputStream in = new FileInputStream(input); in readDeflate64CompressedStream()
[all …]
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/compressors/zstandard/
DZstdRoundtripTest.java21 import java.io.FileInputStream;
52 try (FileInputStream is = new FileInputStream(input); in roundtrip()
60 try (FileInputStream is = new FileInputStream(input); in roundtrip()
61 … ZstdCompressorInputStream zis = new ZstdCompressorInputStream(new FileInputStream(output))) { in roundtrip()
74 try (FileInputStream is = new FileInputStream(input); in factoryRoundtrip()
80 try (FileInputStream is = new FileInputStream(input); in factoryRoundtrip()
82 .createCompressorInputStream("zstd", new FileInputStream(output))) { in factoryRoundtrip()
DZstdCompressorInputStreamTest.java25 import java.io.FileInputStream;
49 try (InputStream inputStream = new FileInputStream(input); in testZstdDecode()
50 InputStream expectedStream = new FileInputStream(expected); in testZstdDecode()
95 try (InputStream is = new FileInputStream(input)) { in shouldBeAbleToSkipAByte()
113 try (InputStream ois = new FileInputStream(original)) { in singleByteReadWorksAsExpected()
117 try (InputStream is = new FileInputStream(input)) { in singleByteReadWorksAsExpected()
129 try (InputStream is = new FileInputStream(input)) { in singleByteReadConsistentlyReturnsMinusOneAtEof()
143 try (InputStream is = new FileInputStream(input)) { in multiByteReadConsistentlyReturnsMinusOneAtEof()
157 try (InputStream is = new FileInputStream(input)) { in testZstandardUnarchive()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/dump/
DDumpArchiveInputStreamTest.java23 import java.io.FileInputStream;
36 try (FileInputStream is = new FileInputStream(getFile("bla.zip"))) { in testNotADumpArchive()
47 try (FileInputStream is = new FileInputStream(getFile("zip64support.tar.bz2"))) { in testNotADumpArchiveButBigEnough()
75 try (FileInputStream in = new FileInputStream(getFile("bla.dump")); in singleByteReadConsistentlyReturnsMinusOneAtEof()
87 try (FileInputStream in = new FileInputStream(getFile("bla.dump")); in multiByteReadConsistentlyReturnsMinusOneAtEof()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/changes/
DChangeSetTestCase.java26 import java.io.FileInputStream;
85 in = new FileInputStream(getFile("test.txt")); in testAddChangeTwice()
86 in2 = new FileInputStream(getFile("test2.xml")); in testAddChangeTwice()
120 in = new FileInputStream(getFile("test.txt")); in testAddChangeTwiceWithoutReplace()
121 in2 = new FileInputStream(getFile("test2.xml")); in testAddChangeTwiceWithoutReplace()
162 final InputStream is = new FileInputStream(input); in testDeleteDir()
204 final InputStream is = new FileInputStream(input); in testDeleteDir2()
246 final InputStream is = new FileInputStream(input); in testDeleteDir3()
288 final InputStream is = new FileInputStream(input); in testDeleteFile()
331 final InputStream is = new FileInputStream(input); in testDeleteFile2()
[all …]
/external/protobuf/src/google/protobuf/io/
Dzero_copy_stream_impl.cc79 FileInputStream::FileInputStream(int file_descriptor, int block_size) in FileInputStream() function in google::protobuf::io::FileInputStream
84 FileInputStream::~FileInputStream() {} in ~FileInputStream()
86 bool FileInputStream::Close() { in Close()
90 bool FileInputStream::Next(const void** data, int* size) { in Next()
94 void FileInputStream::BackUp(int count) { in BackUp()
98 bool FileInputStream::Skip(int count) { in Skip()
102 int64 FileInputStream::ByteCount() const { in ByteCount()
106 FileInputStream::CopyingFileInputStream::CopyingFileInputStream( in CopyingFileInputStream()
115 FileInputStream::CopyingFileInputStream::~CopyingFileInputStream() { in ~CopyingFileInputStream()
123 bool FileInputStream::CopyingFileInputStream::Close() { in Close()
[all …]
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/
DArTestCase.java26 import java.io.FileInputStream;
51 IOUtils.copy(new FileInputStream(file1), os); in testArArchiveCreation()
55 IOUtils.copy(new FileInputStream(file2), os); in testArArchiveCreation()
71 IOUtils.copy(new FileInputStream(file1), os); in testArUnarchive()
75 IOUtils.copy(new FileInputStream(file2), os); in testArUnarchive()
83 try (final InputStream is = new FileInputStream(input); in testArUnarchive()
107 IOUtils.copy(new FileInputStream(file1), os); in testArDelete()
111 IOUtils.copy(new FileInputStream(file2), os); in testArDelete()
130 final InputStream is = new FileInputStream(output); in testArDelete()
167 final InputStream is = new FileInputStream(output2); in testArDelete()
[all …]
DTarTestCase.java24 import java.io.FileInputStream;
55 IOUtils.copy(new FileInputStream(file1), os); in testTarArchiveCreation()
79 final FileInputStream in = new FileInputStream(file1); in testTarArchiveLongNameCreation()
102 IOUtils.copy(new FileInputStream(file1), os2); in testTarArchiveLongNameCreation()
116 final InputStream is = new FileInputStream(input); in testTarUnarchive()
128 final InputStream is = new FileInputStream(input); in testCOMPRESS114()
154 tis = new TarArchiveInputStream(new FileInputStream(archive)); in testDirectoryEntryFromFile()
195 tis = new TarArchiveInputStream(new FileInputStream(archive)); in testExplicitDirectoryEntry()
224 FileInputStream fis = null; in testFileEntryFromFile()
232 fis = new FileInputStream(tmp[1]); in testFileEntryFromFile()
[all …]
DCpioTestCase.java24 import java.io.FileInputStream;
51 IOUtils.copy(new FileInputStream(file1), os); in testCpioArchiveCreation()
55 IOUtils.copy(new FileInputStream(file2), os); in testCpioArchiveCreation()
76 IOUtils.copy(new FileInputStream(file1), os); in testCpioUnarchive()
82 IOUtils.copy(new FileInputStream(file2), os); in testCpioUnarchive()
91 final InputStream is = new FileInputStream(input); in testCpioUnarchive()
132 tis = new CpioArchiveInputStream(new FileInputStream(archive)); in testDirectoryEntryFromFile()
174 tis = new CpioArchiveInputStream(new FileInputStream(archive)); in testExplicitDirectoryEntry()
203 FileInputStream fis = null; in testFileEntryFromFile()
211 fis = new FileInputStream(tmp[1]); in testFileEntryFromFile()
[all …]
DArchiveStreamFactoryTest.java30 import java.io.FileInputStream;
67 try (FileInputStream fis = new FileInputStream("src/test/resources/testAIFF.aif")) { in aiffFilesAreNoTARs()
79 try (FileInputStream fis = new FileInputStream("src/test/resources/testCompress209.doc")) { in testCOMPRESS209()
110 try (FileInputStream fis = new FileInputStream("src/test/resources/bla.7z")) { in detectsAndThrowsFor7z()
127 try (FileInputStream fis = new FileInputStream("src/test/resources/COMPRESS-208.zip")) { in skipsPK00Prefix()
216 …dflt = getField(new ArjArchiveInputStream(new FileInputStream(getFile("bla.arj"))), "charsetName");
223 … dflt = getField(new DumpArchiveInputStream(new FileInputStream(getFile("bla.dump"))), "encoding");
269 try(InputStream in = new BufferedInputStream(new FileInputStream( in detect()
417 new BufferedInputStream(new FileInputStream( in getInputStreamFor()
425 new BufferedInputStream(new FileInputStream( in getInputStreamFor()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/cpio/
DCpioArchiveInputStreamTest.java23 import java.io.FileInputStream;
40 …final CpioArchiveInputStream in = new CpioArchiveInputStream(new FileInputStream(getFile("bla.cpio… in testCpioUnarchive()
58 new CpioArchiveInputStream(new FileInputStream(getFile("redline.cpio"))); in testCpioUnarchiveCreatedByRedlineRpm()
74 new CpioArchiveInputStream(new FileInputStream(getFile("COMPRESS-459.cpio")), "UTF-8"); in testCpioUnarchiveMultibyteCharName()
89 try (FileInputStream in = new FileInputStream(getFile("bla.cpio")); in singleByteReadConsistentlyReturnsMinusOneAtEof()
101 try (FileInputStream in = new FileInputStream(getFile("bla.cpio")); in multiByteReadConsistentlyReturnsMinusOneAtEof()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/arj/
DArjArchiveInputStreamTest.java24 import java.io.FileInputStream;
43 …final ArjArchiveInputStream in = new ArjArchiveInputStream(new FileInputStream(getFile("bla.arj"))… in testArjUnarchive()
61 …final ArjArchiveInputStream in = new ArjArchiveInputStream(new FileInputStream(getFile("bla.arj"))… in testReadingOfAttributesDosVersion()
75 …final ArjArchiveInputStream in = new ArjArchiveInputStream(new FileInputStream(getFile("bla.unix.a… in testReadingOfAttributesUnixVersion()
89 try (FileInputStream in = new FileInputStream(getFile("bla.arj")); in singleByteReadConsistentlyReturnsMinusOneAtEof()
101 try (FileInputStream in = new FileInputStream(getFile("bla.arj")); in multiByteReadConsistentlyReturnsMinusOneAtEof()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/compressors/brotli/
DBrotliCompressorInputStreamTest.java25 import java.io.FileInputStream;
47 try (InputStream inputStream = new FileInputStream(input); in testBrotliDecode()
48 InputStream expectedStream = new FileInputStream(expected); in testBrotliDecode()
94 try (InputStream is = new FileInputStream(input)) { in availableShouldReturnZero()
105 try (InputStream is = new FileInputStream(input)) { in shouldBeAbleToSkipAByte()
116 try (InputStream is = new FileInputStream(input)) { in singleByteReadWorksAsExpected()
128 try (InputStream is = new FileInputStream(input)) { in singleByteReadConsistentlyReturnsMinusOneAtEof()
142 try (InputStream is = new FileInputStream(input)) { in multiByteReadConsistentlyReturnsMinusOneAtEof()
156 try (InputStream is = new FileInputStream(input)) { in testBrotliUnarchive()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/compressors/deflate/
DDeflateCompressorInputStreamTest.java22 import java.io.FileInputStream;
36 try (InputStream is = new FileInputStream(input)) { in availableShouldReturnNonZero()
47 try (InputStream is = new FileInputStream(input)) { in shouldBeAbleToSkipAByte()
58 try (InputStream is = new FileInputStream(input)) { in singleByteReadWorksAsExpected()
70 try (InputStream is = new FileInputStream(input)) { in singleByteReadConsistentlyReturnsMinusOneAtEof()
84 try (InputStream is = new FileInputStream(input)) { in multiByteReadConsistentlyReturnsMinusOneAtEof()

12345678910>>...14