Home
last modified time | relevance | path

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

12345

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DFileInputStreamTest.java21 import java.io.FileInputStream;
114 is = new FileInputStream(f); in test_ConstructorLjava_io_File()
123 FileInputStream fis = new FileInputStream(fos.getFD()); in test_ConstructorLjava_io_FileDescriptor()
132 is = new FileInputStream(fileName); in test_ConstructorLjava_lang_String()
141 is = new FileInputStream(""); in test_ConstructorLjava_lang_String_I()
151 is = new FileInputStream(new File("")); in test_ConstructorLjava_lang_String_I()
167 is = new FileInputStream(fileName); in test_available()
178 is = new FileInputStream(fileName); in test_close()
189 FileInputStream fis1 = new FileInputStream(fileName); in test_close_shared_fd()
190 FileInputStream fis2 = new FileInputStream(fis1.getFD()); in test_close_shared_fd()
[all …]
DFileReaderTest.java22 import java.io.FileInputStream;
35 FileInputStream fis;
61 FileInputStream fis = new FileInputStream(f.getPath()); in test_ConstructorLjava_io_FileDescriptor()
DFileDescriptorTest.java22 import java.io.FileInputStream;
35 FileInputStream fis = null; in test_sync()
42 fis = new FileInputStream(f.getPath()); in test_sync()
/libcore/luni/src/test/java/libcore/java/io/
DFileInputStreamTest.java35 import java.io.FileInputStream;
76 private void verifyData(FileInputStream is, int start, int count) throws IOException { in verifyData()
89 FileInputStream fis = new FileInputStream(pipe[0]); in testSkipInPipes()
102 new FileInputStream("."); in testDirectories()
120 FileInputStream fis1 = new FileInputStream(tmp); in testFileDescriptorOwnership()
121 FileInputStream fis2 = new FileInputStream(fis1.getFD()); in testFileDescriptorOwnership()
179 FileInputStream fis = new FileInputStream(tmp); in testClose()
221 try (FileInputStream input = new FileInputStream(file)) { in test_available_on_nonIOCTL_supported_file()
225 try (FileInputStream input = new FileInputStream(file)) { in test_available_on_nonIOCTL_supported_file()
240 new FileInputStream(phile); in testFdLeakWhenOpeningDirectory()
[all …]
DOldFileWriterTest.java22 import java.io.FileInputStream;
34 FileInputStream fis;
100 FileInputStream fis = new FileInputStream(f); in test_handleEarlyEOFChar_1()
161 FileInputStream fis = new FileInputStream(f); in test_handleExternalFileDescriptor()
DFileDescriptorTest.java23 import java.io.FileInputStream;
40 FileInputStream fis = new FileInputStream(f); in test_isSocket()
/libcore/ojluni/src/main/java/java/io/
DFileReader.java60 super(new FileInputStream(fileName)); in FileReader()
75 super(new FileInputStream(file)); in FileReader()
86 super(new FileInputStream(fd)); in FileReader()
103 super(new FileInputStream(fileName), charset); in FileReader()
120 super(new FileInputStream(file), charset); in FileReader()
DFileInputStream.java74 public class FileInputStream extends InputStream class
132 public FileInputStream(String name) throws FileNotFoundException { in FileInputStream() method in FileInputStream
163 public FileInputStream(File file) throws FileNotFoundException { in FileInputStream() method in FileInputStream
230 public FileInputStream(FileDescriptor fdObj) { in FileInputStream() method in FileInputStream
238 public FileInputStream(FileDescriptor fdObj, boolean isFdOwner) { in FileInputStream() method in FileInputStream
/libcore/ojluni/src/test/java/io/FileInputStream/
DReadXBytes.java34 package test.java.io.FileInputStream;
37 import java.io.FileInputStream;
57 try (FileInputStream fis = new FileInputStream(empty)) { in main()
90 try (FileInputStream fis = new FileInputStream(file)) { in main()
104 try (FileInputStream fis = new FileInputStream(file)) { in main()
/libcore/ojluni/src/test/java/util/Scanner/
DEncodingTest.java27 import java.io.FileInputStream;
111 FileInputStream fis = new FileInputStream(file); in getScanner()
114 FileInputStream fis1 = new FileInputStream(file); in getScanner()
124 FileInputStream fis = new FileInputStream(file); in getScanner()
127 FileInputStream fis1 = new FileInputStream(file); in getScanner()
/libcore/luni/src/test/java/libcore/java/util/zip/
DOldZipInputStreamTest.java22 import java.io.FileInputStream;
63 FileInputStream fis = new FileInputStream(new File(resources, in test_skipJ()
92 FileInputStream fis = new FileInputStream(new File(resources, in test_read$BII()
131 FileInputStream fis = new FileInputStream(new File(resources, in test_closeEntry()
169 FileInputStream fis = new FileInputStream(fl); in test_createZipEntryLjava_lang_String()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DMappedByteBufferTest.java21 import java.io.FileInputStream;
45 FileInputStream fis = new FileInputStream(tmpFile); in testasIntBuffer()
75 FileInputStream fis = new FileInputStream(emptyFile); in testEmptyBuffer()
128 FileInputStream fileInputStream = new FileInputStream(tmpFile); in test_force()
135 FileInputStream inputStream = new FileInputStream(tmpFile); in test_force()
172 FileInputStream fileInputStream = new FileInputStream(tmpFile); in test_load()
/libcore/ojluni/src/test/java/util/Properties/
DSaveEncoding.java34 import java.io.FileInputStream;
75 FileInputStream inFile = new FileInputStream(myFile); in main()
89 FileInputStream myIn = new FileInputStream(myFile); in main()
DLoadSeparators.java33 import java.io.FileInputStream;
62 FileInputStream myIn = new FileInputStream(propFile); in main()
DSave.java33 import java.io.FileInputStream;
66 FileInputStream myIn = new FileInputStream(outputFile); in main()
/libcore/ojluni/annotations/mmodule/java/io/
DFileInputStream.annotated.java33 public class FileInputStream extends java.io.InputStream { class
35 public FileInputStream(java.lang.String name) throws java.io.FileNotFoundException { throw new Runt… in FileInputStream() method in FileInputStream
37 public FileInputStream(java.io.File file) throws java.io.FileNotFoundException { throw new RuntimeE… in FileInputStream() method in FileInputStream
39 public FileInputStream(java.io.FileDescriptor fdObj) { throw new RuntimeException("Stub!"); } in FileInputStream() method in FileInputStream
42 public FileInputStream(java.io.FileDescriptor fdObj, boolean isFdOwner) { throw new RuntimeExceptio… in FileInputStream() method in FileInputStream
/libcore/ojluni/annotations/hiddenapi/java/io/
DFileInputStream.java32 public class FileInputStream extends java.io.InputStream { class
34 public FileInputStream(java.lang.String name) throws java.io.FileNotFoundException { in FileInputStream() method in FileInputStream
38 public FileInputStream(java.io.File file) throws java.io.FileNotFoundException { in FileInputStream() method in FileInputStream
42 public FileInputStream(java.io.FileDescriptor fdObj) { in FileInputStream() method in FileInputStream
46 public FileInputStream(java.io.FileDescriptor fdObj, boolean isFdOwner) { in FileInputStream() method in FileInputStream
73 throws java.io.FileInputStream.UseManualSkipException, java.io.IOException; in skip0()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/
DSAXParserTest.java40 import java.io.FileInputStream;
416 InputSource is = new InputSource(new FileInputStream(list_wf[i])); in test_parseLorg_xml_sax_InputSourceLorg_xml_sax_helpers_DefaultHandler()
424 InputSource is = new InputSource(new FileInputStream(file)); in test_parseLorg_xml_sax_InputSourceLorg_xml_sax_helpers_DefaultHandler()
438 InputSource is = new InputSource(new FileInputStream(list_wf[0])); in test_parseLorg_xml_sax_InputSourceLorg_xml_sax_helpers_DefaultHandler()
443 in = new BrokenInputStream(new FileInputStream(list_wf[0]), 10); in test_parseLorg_xml_sax_InputSourceLorg_xml_sax_helpers_DefaultHandler()
457 InputSource is = new InputSource(new FileInputStream(list_wf[i])); in testParseInputSourceHandlerBase()
465 InputSource is = new InputSource(new FileInputStream(file)); in testParseInputSourceHandlerBase()
479 InputSource is = new InputSource(new FileInputStream(list_wf[0])); in testParseInputSourceHandlerBase()
483 is = new InputSource(new InputStreamReader(new FileInputStream(list_wf[0]))); in testParseInputSourceHandlerBase()
493 in = new BrokenInputStream(new FileInputStream(list_wf[0]), 10); in testParseInputSourceHandlerBase()
[all …]
/libcore/luni/src/test/java/libcore/java/nio/channels/
DFileIOInterruptTest.java22 import java.io.FileInputStream;
101 FileInputStream fis = new FileInputStream(fifoFile); in testStreamRead_exceptionWhenAlreadyClosed()
120 FileInputStream fis = new FileInputStream(fifoFile); in testStreamRead_exceptionOnCloseWhenBlocked()
193 FileInputStream fis = new FileInputStream(fifoFile); in testChannelRead_exceptionWhenAlreadyClosed()
225 FileInputStream fis = new FileInputStream(fifoFile); in testChannelRead_exceptionWhenAlreadyInterrupted()
262 FileInputStream fis = new FileInputStream(fifoFile); in testChannelRead_exceptionOnCloseWhenBlocked()
294 FileChannel fileChannel = new FileInputStream(fifoFile).getChannel(); in testChannelRead_exceptionOnInterrupt()
457 private final FileInputStream inputStream;
462 StreamReader(FileInputStream inputStream) { in StreamReader()
666 private FileInputStream fis;
[all …]
DFileLockTest.java23 import java.io.FileInputStream;
58 try(FileInputStream fis = new FileInputStream(tmp)) { in testToString()
/libcore/luni/src/test/java/libcore/libcore/io/
DFdsanTest.java20 import java.io.FileInputStream;
34 try (FileInputStream fis = new FileInputStream("/dev/null")) { in testFileInputStream()
72 try (FileInputStream fis = new FileInputStream("/dev/null")) { in testParcelFileDescriptor()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DChannelsTest.java19 import java.io.FileInputStream;
51 private FileInputStream fins;
105 FileInputStream file = new FileInputStream(fileToTest); in assertFileSizeSame()
129 this.fins = new FileInputStream(tmpFile); in testNewChannelInputStream_BufferNull()
156 this.fins = new FileInputStream(tmpFile); in testNewChannelInputStream()
242 this.fins = new FileInputStream(tmpFile); in testNewChannelOutputStream()
273 this.fins = new FileInputStream(tmpFile); in testNewInputStreamReadableByteChannel_InputNull()
290 this.fins = new FileInputStream(tmpFile); in testNewInputStreamReadableByteChannel()
362 this.fins = new FileInputStream(tmpFile); in testnewReaderCharsetError()
396 this.fins = new FileInputStream(tmpFile); in testNewReaderReadableByteChannelString_InputNull()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DZipInputStreamTest.java22 import java.io.FileInputStream;
125 FileInputStream fis = new FileInputStream(new File(resources, in test_closeAfterException()
222 FileInputStream fis = new FileInputStream(fl); in test_available()
/libcore/ojluni/src/test/java/text/Format/NumberFormat/
DDFSDeserialization142.java42 FileInputStream istream = new FileInputStream(file); in main()
/libcore/ojluni/src/main/java/sun/security/util/
DAnchorCertificates.java29 import java.io.FileInputStream;
62 try (FileInputStream fis = new FileInputStream(f)) {

12345