]> source.dussan.org Git - jgit.git/commit
Add openStream to ObjectLoader for big blobs 22/1022/1
authorShawn O. Pearce <spearce@spearce.org>
Thu, 1 Jul 2010 01:36:10 +0000 (18:36 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 1 Jul 2010 01:36:10 +0000 (18:36 -0700)
commit23e7f6376ada54b1be232b15366d850d3038b95f
tree4ce0fe60d152eabcfa00790c4d819e82da1facdd
parenta1d5f5b6b526d086a0963c634a38edb6789a4594
Add openStream to ObjectLoader for big blobs

Blobs that are too large to read as a single byte array should be
accessed through an InputStream based interface instead, allowing
the application to walk through the data stream incrementally.

Define the basic interface to support streaming contents, but don't
implement it yet for the file based backend.

Change-Id: If9e4442e9ef4ed52c3e0f1af9398199a73145516
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/errors/LargeObjectException.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectLoader.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectStream.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/PackedObjectLoader.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/UnpackedObjectLoader.java