Searched refs:fileOutputStream (Results 1 – 2 of 2) sorted by relevance
192 FileOutputStream fileOutputStream = null; in openFileOutput_shouldReturnAFileOutputStream() local194 fileOutputStream = context.openFileOutput("__test__", -1); in openFileOutput_shouldReturnAFileOutputStream()195 fileOutputStream.write(fileContents.getBytes()); in openFileOutput_shouldReturnAFileOutputStream()197 if (fileOutputStream != null) in openFileOutput_shouldReturnAFileOutputStream()198 fileOutputStream.close(); in openFileOutput_shouldReturnAFileOutputStream()
1095 FileOutputStream fileOutputStream = null; in saveTmpFile() local1099 fileOutputStream = new FileOutputStream(tempFile.getName()); in saveTmpFile()1100 FileChannel dest = fileOutputStream.getChannel(); in saveTmpFile()1107 safeClose(fileOutputStream); in saveTmpFile()