docs: @Override
      public MappedByteBuffer map(MapMode mode, long position, long size) throws IOException
      {
          ByteBuffer writeView;
          if (MapMode.READ_WRITE == mode)
          {
              writeView = file.writeView(Casts.castInt(position), Casts.castInt(size));
          }
          else
          {
              if (MapMode.READ_ONLY == mode)
              {
                  writeView = file.readView(Casts.castInt(position));
              }
              else
              {
                  throw new UnsupportedOperationException(mode+" not supported");
              }
          }
          if (writeView instanceof MappedByteBuffer)
          {
              ByteBuffer slice = writeView.slice();
              return (MappedByteBuffer) slice;
          }
          else
          {
              throw new UnsupportedOperationException("Not supported yet.");
          }
      }