private static long map0(FileChannel fileChannel, int imode, long start, long size) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException { Method map0 = fileChannel.getClass().getDeclaredMethod("map0", int.class, long.class, long.class); map0.setAccessible(true); return (Long) map0.invoke(fileChannel, imode, start, size); }