/** Create a BufferChannelFile with unmanaged file resources - use with care */ public static BufferChannelFile createUnmanaged(String filename, String mode) { try { @SuppressWarnings("resource") RandomAccessFile out = new RandomAccessFile(filename, mode) ; FileChannel channel = out.getChannel() ; FileBase base = FileBase.createUnmanged(filename, channel) ; return new BufferChannelFile(base) ; } catch (FileNotFoundException e) { IO.exception(e) ; return null ; } }