|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.jgit.lib.ObjectWriter
public class ObjectWriter
A class for writing loose objects.
| Constructor Summary | |
|---|---|
ObjectWriter(Repository d)
Construct an Object writer for the specified repository |
|
| Method Summary | |
|---|---|
ObjectId |
computeBlobSha1(long len,
java.io.InputStream is)
Compute the SHA-1 of a blob without creating an object. |
ObjectId |
writeBlob(byte[] b)
Write a blob with the specified data |
ObjectId |
writeBlob(java.io.File f)
Write a blob with the data in the specified file |
ObjectId |
writeBlob(long len,
java.io.InputStream is)
Write a blob with data from a stream |
ObjectId |
writeCanonicalTree(byte[] b)
Write a canonical tree to the object database. |
ObjectId |
writeCommit(Commit c)
Write a Commit to the object database |
ObjectId |
writeTag(Tag c)
Write an annotated Tag to the object database |
ObjectId |
writeTree(Tree t)
Write a Tree to the object database. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectWriter(Repository d)
d - | Method Detail |
|---|
public ObjectId writeBlob(byte[] b)
throws java.io.IOException
b - bytes of the blob
java.io.IOException
public ObjectId writeBlob(java.io.File f)
throws java.io.IOException
f - a file containing blob data
java.io.IOException
public ObjectId writeBlob(long len,
java.io.InputStream is)
throws java.io.IOException
len - number of bytes to consume from the streamis - stream with blob data
java.io.IOException
public ObjectId writeTree(Tree t)
throws java.io.IOException
t - Tree
java.io.IOException
public ObjectId writeCanonicalTree(byte[] b)
throws java.io.IOException
b - the canonical encoding of the tree object.
java.io.IOException
public ObjectId writeCommit(Commit c)
throws java.io.IOException
c - Commit to store
java.io.IOException
public ObjectId writeTag(Tag c)
throws java.io.IOException
c - Tag
java.io.IOException
public ObjectId computeBlobSha1(long len,
java.io.InputStream is)
throws java.io.IOException
len - number of bytes to consumeis - stream for read blob data from
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||