Package org.eclipse.jgit.api
Class ApplyCommand.SHA1InputStream
java.lang.Object
java.io.InputStream
org.eclipse.jgit.api.ApplyCommand.SHA1InputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
- ApplyCommand
An
InputStream that updates a SHA1 on every byte read.
The hash is supposed to have been initialized before reading starts.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
hash
-
in
-
-
Constructor Details
-
SHA1InputStream
SHA1InputStream(SHA1 hash, InputStream in)
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-