fjohnson/rotman — comment on commit 6ab577b58746080c3d4c2b1e34a0afc239c285f7
File: rotman/xnat_downloader_uploader/XnatUploaderExperiment.java line 348
By fjohnson:

Using your own buffer to read chunks is more efficient than using an buffered wrapper, even if the buffered wrapper's internal buffer size is equal to your own buffer. Also, if you do use a buffered wrapper around an input stream and you use the read(buf[]) method it is more or less the same as just using the inputstream's read(buf[]) method performance wise.