Searched refs:fis1 (Results 1 – 3 of 3) sorted by relevance
120 FileInputStream fis1 = new FileInputStream(tmp); in testFileDescriptorOwnership() local121 FileInputStream fis2 = new FileInputStream(fis1.getFD()); in testFileDescriptorOwnership()147 assertTrue(fis1.getFD().valid()); in testFileDescriptorOwnership()148 assertFalse(fis1.read() == -1); in testFileDescriptorOwnership()151 fis1.close(); in testFileDescriptorOwnership()153 fis1.available(); in testFileDescriptorOwnership()158 fis1.read(); in testFileDescriptorOwnership()163 fis1.read(new byte[1], 0, 1); in testFileDescriptorOwnership()168 fis1.skip(1); in testFileDescriptorOwnership()174 assertFalse(fis1.getFD().valid()); in testFileDescriptorOwnership()
114 FileInputStream fis1 = new FileInputStream(file); in getScanner() local115 return new Scanner(fis1.getChannel(), csn); in getScanner()127 FileInputStream fis1 = new FileInputStream(file); in getScanner() local128 return new Scanner(fis1.getChannel(), charset); in getScanner()
189 FileInputStream fis1 = new FileInputStream(fileName); in test_close_shared_fd() local190 FileInputStream fis2 = new FileInputStream(fis1.getFD()); in test_close_shared_fd()195 fis1.read(); in test_close_shared_fd()198 fis1.close(); in test_close_shared_fd()