43444546474849
throw new NonWritableChannelException(); } public final int write(ByteBuffer buffer) throws IOException { openCheck(); throw new NonWritableChannelException(); }
52535455565758
throws IOException { if (offset < 0 || length < 0 || (offset + length) > buffers.length) { throw new IndexOutOfBoundsException(); } openCheck(); throw new NonWritableChannelException(); }
60616263646566
public final FileChannel truncate(long size) throws IOException { openCheck(); if (size < 0) { throw new IllegalArgumentException(); } throw new NonWritableChannelException(); }
69707172737475
long count) throws IOException { openCheck(); if (!src.isOpen()) { throw new ClosedChannelException(); } throw new NonWritableChannelException(); }
828384858687888990
} if (position < 0 || size < 0 || size > Integer.MAX_VALUE) { throw new IllegalArgumentException(); } if (mode != MapMode.READ_ONLY) { throw new NonWritableChannelException(); } return super.mapImpl(IMemorySystem.MMAP_READ_ONLY, position, size); }
9596979899100101102103
} protected final FileLock basicLock(long position, long size, boolean shared, boolean wait) throws IOException { if (!shared) { throw new NonWritableChannelException(); } return super.basicLock(position, size, shared, true); }
417418419420421422423424425426427
openCheck(); if (!target.isOpen()) { throw new ClosedChannelException(); } if (target instanceof ReadOnlyFileChannel) { throw new NonWritableChannelException(); } if (position < 0 || count < 0) { throw new IllegalArgumentException(); }
979899100101102103104
} } void checkWritable() { if (!write) { throw new NonWritableChannelException(); } }
138139140141142143144145
synchronized void write(byte[] buffer, int[] offArr, int len) throws IOException { int fd = getNativeFD(); if ((mode & FileChannelImpl.WRITE) == 0) throw new NonWritableChannelException(); fileWrite(fd, buffer, offArr, len, isNonBlocking); }
366367368369370371372373374375376
{ if (!isOpen ()) throw new ClosedChannelException (); if ((mode & WRITE) == 0) throw new NonWritableChannelException (); boolean completed = false; int result; try {