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:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-