Add copy(InputStream) to TemporaryBuffer
commit167c8354b1468ea900863994a874923249d8eada
authorShawn O. Pearce <spearce@spearce.org>
Thu, 11 Dec 2008 16:53:45 +0000 (11 08:53 -0800)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sat, 13 Dec 2008 02:13:25 +0000 (13 03:13 +0100)
tree152df4de39fb9672ee3b0b101cef7da0f04b4b65
parent53df4bb321672e5259527be84607c0463d2eb098
Add copy(InputStream) to TemporaryBuffer

In some places we may find 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.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit/src/org/spearce/jgit/util/TemporaryBuffer.java