@Override MappedPageArray doOpen() throws IOException { boolean empty = mEmpty; WindowsMappedPageArray pa = new WindowsMappedPageArray (pageSize(), super.getPageCount(), mFile, mOptions); pa.mEmpty = empty; return pa; }
@Override MappedPageArray doOpen() throws IOException { boolean empty = mEmpty; WindowsMappedPageArray pa = new WindowsMappedPageArray (pageSize(), super.getPageCount(), mFile, mOptions); pa.mEmpty = empty; return pa; }
@Override MappedPageArray doOpen() throws IOException { boolean empty = mEmpty; WindowsMappedPageArray pa = new WindowsMappedPageArray (pageSize(), super.getPageCount(), mFile, mOptions); pa.mEmpty = empty; return pa; }
/** * @param file file to store pages, or null if anonymous */ public static MappedPageArray open(int pageSize, long pageCount, File file, EnumSet<OpenOption> options) throws IOException { if (pageSize < 1 || pageCount < 0 || pageCount > Long.MAX_VALUE / pageSize) { throw new IllegalArgumentException(); } if (options == null) { options = EnumSet.noneOf(OpenOption.class); } if (Platform.isWindows()) { return new WindowsMappedPageArray(pageSize, pageCount, file, options); } else { return new PosixMappedPageArray(pageSize, pageCount, file, options); } }
/** * @param file file to store pages, or null if anonymous */ public static MappedPageArray open(int pageSize, long pageCount, File file, EnumSet<OpenOption> options) throws IOException { if (pageSize < 1 || pageCount < 0 || pageCount > Long.MAX_VALUE / pageSize) { throw new IllegalArgumentException(); } if (options == null) { options = EnumSet.noneOf(OpenOption.class); } if (Platform.isWindows()) { return new WindowsMappedPageArray(pageSize, pageCount, file, options); } else { return new PosixMappedPageArray(pageSize, pageCount, file, options); } }
/** * @param file file to store pages, or null if anonymous */ public static MappedPageArray open(int pageSize, long pageCount, File file, EnumSet<OpenOption> options) throws IOException { if (pageSize < 1 || pageCount < 0 || pageCount > Long.MAX_VALUE / pageSize) { throw new IllegalArgumentException(); } if (options == null) { options = EnumSet.noneOf(OpenOption.class); } if (Platform.isWindows()) { return new WindowsMappedPageArray(pageSize, pageCount, file, options); } else { return new PosixMappedPageArray(pageSize, pageCount, file, options); } }