Add toByteArray() to TemporaryBuffer
commit53df4bb321672e5259527be84607c0463d2eb098
authorShawn O. Pearce <spearce@spearce.org>
Thu, 11 Dec 2008 04:58:38 +0000 (10 20:58 -0800)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sat, 13 Dec 2008 02:13:25 +0000 (13 03:13 +0100)
treeb52633badb523defff43ac194771521f45ca84c9
parent3d4a7e967c5825eb80efb120ff1705054748ca6f
Add toByteArray() to TemporaryBuffer

It can be more useful to convert a buffered output stream into
a single byte array, without paying the penalties associated
with ByteArrayOutputStream to do the same action.

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