Searched refs:fileOutputStream (Results 1 – 3 of 3) sorted by relevance
175 …try (FileOutputStream fileOutputStream = context.openFileOutput("__test__", Context.MODE_PRIVATE))… in openFileOutput_shouldReturnAFileOutputStream() argument176 fileOutputStream.write(fileContents.getBytes(UTF_8)); in openFileOutput_shouldReturnAFileOutputStream()196 …try (FileOutputStream fileOutputStream = context.openFileOutput("__test__", Context.MODE_APPEND)) { in openFileOutput_shouldAppendData() argument197 fileOutputStream.write(initialFileContents.getBytes(UTF_8)); in openFileOutput_shouldAppendData()199 …try (FileOutputStream fileOutputStream = context.openFileOutput("__test__", Context.MODE_APPEND)) { in openFileOutput_shouldAppendData() argument200 fileOutputStream.write(appendedFileContents.getBytes(UTF_8)); in openFileOutput_shouldAppendData()214 try (FileOutputStream fileOutputStream = context.openFileOutput("__test__", 0)) { in openFileOutput_shouldOverwriteData() argument215 fileOutputStream.write(initialFileContents.getBytes(UTF_8)); in openFileOutput_shouldOverwriteData()217 try (FileOutputStream fileOutputStream = context.openFileOutput("__test__", 0)) { in openFileOutput_shouldOverwriteData() argument218 fileOutputStream.write(newFileContents.getBytes(UTF_8)); in openFileOutput_shouldOverwriteData()
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()