Class PackInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.eclipse.jgit.internal.storage.file.PackInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
class PackInputStream extends java.io.InputStream
-
-
Field Summary
Fields Modifier and Type Field Description private Pack
pack
private long
pos
private WindowCursor
wc
-
Constructor Summary
Constructors Constructor Description PackInputStream(Pack pack, long pos, WindowCursor wc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
int
read()
int
read(byte[] b, int off, int len)
-
-
-
Field Detail
-
wc
private final WindowCursor wc
-
pack
private final Pack pack
-
pos
private long pos
-
-
Constructor Detail
-
PackInputStream
PackInputStream(Pack pack, long pos, WindowCursor wc) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException
- Overrides:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException
- Specified by:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.InputStream
-
-