}
else if (mode == MapMode.READ_WRITE || mode == MapMode.PRIVATE)
{
nmode = mode == MapMode.READ_WRITE ? '+' : 'c';
if ((this.mode & WRITE) != WRITE)
throw new NonWritableChannelException();
if ((this.mode & READ) != READ)
throw new NonReadableChannelException();
}
else
throw new IllegalArgumentException ("mode: " + mode);