public static ByteArrayDiskQueue createFromFile ( final long size , final File file , final int bufferSize , final boolean direct ) throws IOException { final ByteArrayDiskQueue byteArrayDiskQueue = new ByteArrayDiskQueue ( ByteDiskQueue . createFromFile ( file , bufferSize , direct ) ) ; byteArrayDiskQueue . size = size ; return byteArrayDiskQueue ; }
Creates a new disk - based queue of byte arrays using an existing file .