compomics / compomics-utilities

Open source Java library for computational proteomics
http://compomics.github.io/projects/compomics-utilities.html
29 stars 17 forks source link

Update to Util.java to allow copying files larger 2GB #36

Closed tzaeschke closed 4 years ago

tzaeschke commented 4 years ago

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.

See ZooDB issue #122