openCheck();
if (!target.isOpen()) {
throw new ClosedChannelException();
}
if (target instanceof ReadOnlyFileChannel) {
throw new NonWritableChannelException();
}
if (position < 0 || count < 0 || position > Integer.MAX_VALUE
|| count > Integer.MAX_VALUE) {
throw new IllegalArgumentException();
}