Home
last modified time | relevance | path

Searched refs:TRUNCATE_EXISTING (Results 1 – 13 of 13) sorted by relevance

/external/jimfs/jimfs/src/main/java/com/google/common/jimfs/
DOptions.java24 import static java.nio.file.StandardOpenOption.TRUNCATE_EXISTING;
59 ImmutableSet.<OpenOption>of(WRITE, CREATE, TRUNCATE_EXISTING);
DFileSystemView.java24 import static java.nio.file.StandardOpenOption.TRUNCATE_EXISTING;
349 if (options.contains(TRUNCATE_EXISTING) && options.contains(WRITE)) { in open()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/examples/
DSevenZArchiverTest.java73 StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING)) { in channelVersion() argument
83 StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING)) { in unknownFormat() argument
DParameterizedArchiverTest.java102 StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING)) { in channelVersion() argument
/external/libbrillo/brillo/streams/
Dfile_stream.h32 TRUNCATE_EXISTING, // Open/truncate existing file. Fail if doesn't exist. enumerator
Dfile_stream.cc226 case Disposition::TRUNCATE_EXISTING: in Open()
Dfile_stream_test.cc895 FileStream::Disposition::TRUNCATE_EXISTING, in TEST_F()
913 FileStream::Disposition::TRUNCATE_EXISTING, in TEST_F()
/external/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/
DIcuTextWriter.java10 import static java.nio.file.StandardOpenOption.TRUNCATE_EXISTING;
44 private static final OpenOption[] OVERWRITE_FILES = { CREATE, TRUNCATE_EXISTING };
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/examples/
DArchiver.java73 StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING)) { in create() argument
/external/jimfs/jimfs/src/test/java/com/google/common/jimfs/
DJimfsUnixLikeFileSystemTest.java36 import static java.nio.file.StandardOpenOption.TRUNCATE_EXISTING;
892 Files.write(test, bytes, WRITE, CREATE, TRUNCATE_EXISTING); // default options in testWriteFile_withStandardOptions()
898 Files.write(test, bytes, WRITE, CREATE, TRUNCATE_EXISTING, APPEND, SPARSE, DSYNC, SYNC); in testWriteFile_withStandardOptions()
918 try (FileChannel channel = FileChannel.open(path("/test"), READ, TRUNCATE_EXISTING)) { in testOpenFile_withReadAndTruncateExisting_doesNotTruncateFile() argument
966 Files.write(test, lines, UTF_8, WRITE, CREATE, TRUNCATE_EXISTING); // default options in testWriteLines_withStandardOptions()
972 Files.write(test, lines, UTF_8, WRITE, CREATE, TRUNCATE_EXISTING, APPEND, SPARSE, DSYNC, SYNC); in testWriteLines_withStandardOptions()
1439 try (OutputStream out = Files.newOutputStream(path, CREATE, TRUNCATE_EXISTING)) { in testOutputStream_withTruncateExistingAndNotWrite_truncatesFile() argument
/external/deqp/framework/delibs/deutil/
DdeFile.c271 create = TRUNCATE_EXISTING; in deFile_create()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/sevenz/
DSevenZOutputFile.java73 StandardOpenOption.TRUNCATE_EXISTING))); in SevenZOutputFile()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/
DZipArchiveOutputStream.java295 StandardOpenOption.TRUNCATE_EXISTING)); in ZipArchiveOutputStream()