Re: [JGIT PATCH 2/5] Add copy(InputStream) to TemporaryBuffer
torsdag 11 december 2008 05:58:39 skrev Shawn O. Pearce:
Show 6 quoted lines
> In some places we may find it ourselves with an InputStream we
> need to copy into a TemporaryBuffer, so we can flatten out the
> entire stream to a single byte[]. Putting the copy loop here
> is more useful then duplicating it in application level code.
> + public void copy(final InputStream in) throws IOException {
> + final byte[] b = new byte[2048];Why not 8192 here too?
-- robin