문제

I noticed there doesn't seem to be a way to specify a length of bytes for the copy method. copyLarge(InputStream input, OutputStream output, long inputOffset, long length) is basically what I'm looking for, but the API asserts this is meant for files over 2GB, which is not necessarily the case for me.

도움이 되었습니까?

해결책

copyLarge(InputStream input, OutputStream output, long inputOffset, long length) is using copy buffer of 4kb. So you can use it also for smaller files.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top