Package org.eclipse.jgit.transport
Class WalkRemoteObjectDatabase.FileStream
java.lang.Object
org.eclipse.jgit.transport.WalkRemoteObjectDatabase.FileStream
- Enclosing class:
WalkRemoteObjectDatabase
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final InputStream
(package private) final long
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new stream of unknown length.FileStream
(InputStream i, long n) Create a new stream of known length. -
Method Summary
-
Field Details
-
in
-
length
final long length
-
-
Constructor Details
-
FileStream
FileStream(InputStream i) Create a new stream of unknown length.- Parameters:
i
- stream containing the file data. This stream will be closed by the caller when reading is complete.
-
FileStream
FileStream(InputStream i, long n) Create a new stream of known length.- Parameters:
i
- stream containing the file data. This stream will be closed by the caller when reading is complete.n
- total number of bytes available for reading throughi
.
-
-
Method Details
-
toArray
- Throws:
IOException
-