synchronized public long transferTo(final RandomAccessFile out) throws IOException { if (out == null) throw new IllegalArgumentException(); /* * Note: Force the write cache to the disk so that all the data we want * to transfer from channel to channel are actually on the source * channel! * * Note: This also handles the case for a Temporary store where the * backing file has not even been created yet. */ flushWriteCache(); return super.transferFromDiskTo(this, out); }
@Override synchronized public long transferTo(final RandomAccessFile out) throws IOException { if (out == null) throw new IllegalArgumentException(); /* * Note: Force the write cache to the disk so that all the data we want * to transfer from channel to channel are actually on the source * channel! * * Note: This also handles the case for a Temporary store where the * backing file has not even been created yet. */ flushWriteCache(); return super.transferFromDiskTo(this, out); }
synchronized public long transferTo(final RandomAccessFile out) throws IOException { if (out == null) throw new IllegalArgumentException(); /* * Note: Force the write cache to the disk so that all the data we want * to transfer from channel to channel are actually on the source * channel! * * Note: This also handles the case for a Temporary store where the * backing file has not even been created yet. */ flushWriteCache(); return super.transferFromDiskTo(this, out); }
@Override synchronized public long transferTo(final RandomAccessFile out) throws IOException { if (out == null) throw new IllegalArgumentException(); /* * Note: Force the write cache to the disk so that all the data we want * to transfer from channel to channel are actually on the source * channel! * * Note: This also handles the case for a Temporary store where the * backing file has not even been created yet. */ flushWriteCache(); return super.transferFromDiskTo(this, out); }