HomeSort by relevance Sort by last modified time
    Searched refs:readOnlyFileChannel (Results 1 - 2 of 2) sorted by null

  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
FileChannelTest.java 79 private FileChannel readOnlyFileChannel;
128 readOnlyFileChannel = new FileInputStream(fileOfReadOnlyFileChannel)
141 IoUtils.closeQuietly(readOnlyFileChannel);
214 readOnlyFileChannel.force(true);
215 readOnlyFileChannel.force(false);
222 assertEquals(0, readOnlyFileChannel.position());
233 assertEquals(0, readOnlyFileChannel.position());
235 readOnlyFileChannel.read(readBuffer);
236 assertEquals(CONTENT_LENGTH, readOnlyFileChannel.position());
306 readOnlyFileChannel.close()
    [all...]
  /libcore/luni/src/test/java/libcore/java/nio/channels/
OldFileChannelTest.java 61 private FileChannel readOnlyFileChannel;
90 readOnlyFileChannel = new FileInputStream(fileOfReadOnlyFileChannel)
99 if (null != readOnlyFileChannel) {
101 readOnlyFileChannel.close();
263 readOnlyFileChannel.read(readBuffer, -1);
284 readOnlyFileChannel.close();
286 readOnlyFileChannel.read(readBuffer, -1);
312 readOnlyFileChannel.read(null, 0, 1);
318 readOnlyFileChannel.read(null, 0, 3);
324 readOnlyFileChannel.read(null, 1, 2)
    [all...]

Completed in 325 milliseconds