Searched refs:fileOutputStream (Results 1 – 5 of 5) sorted by relevance
159 private final FileOutputStream fileOutputStream; field in AtomicFile.AtomicFileOutputStream163 fileOutputStream = new FileOutputStream(file); in AtomicFileOutputStream()174 fileOutputStream.getFD().sync(); in close()178 fileOutputStream.close(); in close()183 fileOutputStream.flush(); in flush()188 fileOutputStream.write(b); in write()193 fileOutputStream.write(b); in write()198 fileOutputStream.write(b, off, len); in write()
178 …try (FileOutputStream fileOutputStream = context.openFileOutput("__test__", Context.MODE_PRIVATE))… in openFileOutput_shouldReturnAFileOutputStream() argument179 fileOutputStream.write(fileContents.getBytes(UTF_8)); in openFileOutput_shouldReturnAFileOutputStream()199 …try (FileOutputStream fileOutputStream = context.openFileOutput("__test__", Context.MODE_APPEND)) { in openFileOutput_shouldAppendData() argument200 fileOutputStream.write(initialFileContents.getBytes(UTF_8)); in openFileOutput_shouldAppendData()202 …try (FileOutputStream fileOutputStream = context.openFileOutput("__test__", Context.MODE_APPEND)) { in openFileOutput_shouldAppendData() argument203 fileOutputStream.write(appendedFileContents.getBytes(UTF_8)); in openFileOutput_shouldAppendData()217 try (FileOutputStream fileOutputStream = context.openFileOutput("__test__", 0)) { in openFileOutput_shouldOverwriteData() argument218 fileOutputStream.write(initialFileContents.getBytes(UTF_8)); in openFileOutput_shouldOverwriteData()220 try (FileOutputStream fileOutputStream = context.openFileOutput("__test__", 0)) { in openFileOutput_shouldOverwriteData() argument221 fileOutputStream.write(newFileContents.getBytes(UTF_8)); in openFileOutput_shouldOverwriteData()
64 FileOutputStream fileOutputStream = (FileOutputStream) os; in FixedLengthBlockOutputStream() local65 out = fileOutputStream.getChannel(); in FixedLengthBlockOutputStream()
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()
630 FileOutputStream fileOutputStream = new FileOutputStream(badJar); in doTestBadJarDoesntBlowUp() local631 JarOutputStream jarOutputStream = new JarOutputStream(fileOutputStream); in doTestBadJarDoesntBlowUp()