public class GitObjectStream
extends java.io.InputStream
| Constructor and Description |
|---|
GitObjectStream(java.io.InputStream rawStream) |
GitObjectStream(Path path) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.io.InputStream |
getInputStream() |
long |
getLength() |
GitType |
getType() |
GitCommit |
parseCommit() |
GitTree |
parseTree() |
int |
read() |
int |
read(byte[] buffer,
int offset,
int length) |
java.lang.String |
toString() |
public GitObjectStream(Path path) throws java.io.IOException
java.io.IOExceptionpublic GitObjectStream(java.io.InputStream rawStream)
throws java.io.IOException
java.io.IOExceptionpublic GitType getType()
public long getLength()
public GitCommit parseCommit() throws java.io.IOException
java.io.IOExceptionpublic GitTree parseTree() throws java.io.IOException
java.io.IOExceptionpublic java.io.InputStream getInputStream()
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] buffer,
int offset,
int length)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreampublic java.lang.String toString()
toString in class java.lang.Object