Home
last modified time | relevance | path

Searched refs:newByteChannel (Results 1 – 14 of 14) sorted by relevance

/external/apache-commons-io/src/main/java/org/apache/commons/io/file/
DFilesUncheck.java441 public static SeekableByteChannel newByteChannel(final Path path, final OpenOption... options) { in newByteChannel() method in FilesUncheck
442 return Uncheck.apply(Files::newByteChannel, path, options); in newByteChannel()
455 …public static SeekableByteChannel newByteChannel(final Path path, final Set<? extends OpenOption> … in newByteChannel() method in FilesUncheck
456 return Uncheck.apply(Files::newByteChannel, path, options, attrs); in newByteChannel()
/external/jimfs/jimfs/src/test/java/com/google/common/jimfs/
DJimfsFileSystemCloseTest.java118 SeekableByteChannel sbc = Files.newByteChannel(p, READ); in testOpenChannelsClosed()
337 Files.newByteChannel(file); in testFilesMethodsThrow()
DJimfsUnixLikeFileSystemTest.java710 Files.newByteChannel(path("/foo"), ImmutableSet.of(WRITE, CREATE), permissions).close(); in testOpenChannel_withInitialAttributes_createNewFile()
725 Files.newByteChannel(path("/foo"), ImmutableSet.of(WRITE, CREATE), permissions).close(); in testOpenChannel_withInitialAttributes_fileExists()
1464 try (SeekableByteChannel channel = Files.newByteChannel(path("/test.txt"), READ)) { in testChannels()
1478 try (SeekableByteChannel channel = Files.newByteChannel(path("/test"), READ, WRITE)) { in testChannels()
1996 secureStream.newByteChannel(path("b"), ImmutableSet.of(WRITE, CREATE_NEW)).close(); in testSecureDirectoryStream()
2042 barStream.newByteChannel(path("stuff"), ImmutableSet.of(WRITE, CREATE_NEW)).close(); in testSecureDirectoryStream()
2147 stream.newByteChannel(fs.getPath("a"), ImmutableSet.of(CREATE, WRITE)); in testClosedSecureDirectoryStream()
2397 try (SeekableByteChannel channel = Files.newByteChannel(bar)) { in testUnsupportedFeatures()
/external/tensorflow/tensorflow/lite/java/src/test/java/org/tensorflow/lite/
DTestUtils.java39 Files.newByteChannel(new File(path).toPath(), EnumSet.of(StandardOpenOption.READ))) { in getTestFileAsBuffer()
/external/apache-commons-io/src/test/java/org/apache/commons/io/file/
DFilesUncheckTest.java269 …try (SeekableByteChannel c = FilesUncheck.newByteChannel(FILE_PATH_EMPTY, StandardOpenOption.READ)… in testNewByteChannelPathOpenOptionArray()
280 …try (SeekableByteChannel c = FilesUncheck.newByteChannel(FILE_PATH_EMPTY, options, EMPTY_FILE_ATTR… in testNewByteChannelPathSetOfQextendsOpenOptionFileAttributeOfQArray()
/external/jimfs/jimfs/src/main/java/com/google/common/jimfs/
DJimfsSecureDirectoryStream.java143 public SeekableByteChannel newByteChannel( in newByteChannel() method in JimfsSecureDirectoryStream
DSystemJimfsFileSystemProvider.java203 public SeekableByteChannel newByteChannel(
DJimfsFileSystemProvider.java160 public SeekableByteChannel newByteChannel( in newByteChannel() method in JimfsFileSystemProvider
/external/apache-commons-io/src/main/java/org/apache/commons/io/input/
DReversedLinesFileReader.java349 this.channel = Files.newByteChannel(file, StandardOpenOption.READ); in ReversedLinesFileReader()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/sevenz/
DSevenZFile.java108 this(Files.newByteChannel(filename.toPath(), EnumSet.of(StandardOpenOption.READ)), in SevenZFile()
123 this(Files.newByteChannel(filename.toPath(), EnumSet.of(StandardOpenOption.READ)), in SevenZFile()
DSevenZOutputFile.java71 this(Files.newByteChannel(filename.toPath(), in SevenZOutputFile()
/external/guava/guava/src/com/google/common/io/
DMoreFiles.java162 try (SeekableByteChannel channel = Files.newByteChannel(path, options)) { in read()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/
DZipFile.java218 this(Files.newByteChannel(f.toPath(), EnumSet.of(StandardOpenOption.READ)), in ZipFile()
DZipArchiveOutputStream.java292 _channel = Files.newByteChannel(file.toPath(), in ZipArchiveOutputStream()