]> source.dussan.org Git - jgit.git/commit
UnionInputStream: combines sequential InputStreams into one 53/153/3
authorShawn O. Pearce <sop@google.com>
Sat, 28 Nov 2009 01:22:40 +0000 (17:22 -0800)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 4 Jan 2010 16:03:50 +0000 (08:03 -0800)
commit2ef29ed106d5256958410edca09b9ae0cb35907b
tree5e9ef072a8bb7eeb5440fcb40b34b8056b2320e0
parent0b821817fcc8c0471c7a9685e9fd566e81a1bbbd
UnionInputStream: combines sequential InputStreams into one

The UnionInputStream utility class combines multiple sequential
InputStreams so they appear to the caller as a single stream with
no gaps.  This can be used to concentate streams coming from multiple
independent HTTP connections (for example).

The companion unit test covers the class's full functionality.

Change-Id: I0676c7b5e082a5886bf0e8f43f9fd6c46a666228
Signed-off-by: Shawn O. Pearce <sop@google.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/util/io/UnionInputStreamTest.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/util/io/UnionInputStream.java [new file with mode: 0644]