By default, FileChannel.transferTo() copies only 2GB of a file. To copy larger files, the method needs to be called several times. (Internally, transferTo() appears to be using a MappedByteBuffer, which is faster than other methods but limited to 2GB).
This should fix an issue with PeptideShaker/ZooDB.
By default,
FileChannel.transferTo()
copies only 2GB of a file. To copy larger files, the method needs to be called several times. (Internally,transferTo()
appears to be using aMappedByteBuffer
, which is faster than other methods but limited to 2GB).This should fix an issue with PeptideShaker/ZooDB.
See ZooDB issue #122