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.IOException
public GitObjectStream(java.io.InputStream rawStream) throws java.io.IOException
java.io.IOException
public GitType getType()
public long getLength()
public GitCommit parseCommit() throws java.io.IOException
java.io.IOException
public GitTree parseTree() throws java.io.IOException
java.io.IOException
public java.io.InputStream getInputStream()
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] buffer, int offset, int length) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
public java.lang.String toString()
toString
in class java.lang.Object