]> source.dussan.org Git - jgit.git/commit
WorkingTreeIterator: directly filter input stream 87/204587/6
authorMatthias Sohn <matthias.sohn@sap.com>
Sat, 23 Sep 2023 23:41:13 +0000 (01:41 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Mon, 25 Sep 2023 20:06:13 +0000 (22:06 +0200)
commita2bce029aaf9931dfd0beccf0fc78f9226dee032
tree5039a31e295dde63e10385a4c615215e0a3475c9
parent84ced89dc3d3163535cb170f4a6da49b60a51c3f
WorkingTreeIterator: directly filter input stream

This way we can avoid to access the byte buffers backing array.
Implement a ByteBufferInputStream to wrap a byte buffer which we can use
to expose the filter result as an input stream.

Change-Id: I461c82090de2562ea9b649b3f953aad4571e3d25
org.eclipse.jgit.test/tst/org/eclipse/jgit/util/io/ByteBufferInputStreamTest.java [new file with mode: 0644]
org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java
org.eclipse.jgit/src/org/eclipse/jgit/treewalk/WorkingTreeIterator.java
org.eclipse.jgit/src/org/eclipse/jgit/util/io/ByteBufferInputStream.java [new file with mode: 0644]