|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.jgit.lib.ObjectLoader
org.eclipse.jgit.lib.UnpackedObjectLoader
public class UnpackedObjectLoader
Loose object loader. This class loads an object not stored in a pack.
| Constructor Summary | |
|---|---|
UnpackedObjectLoader(byte[] compressed)
Construct an ObjectLoader from a loose object's compressed form. |
|
UnpackedObjectLoader(java.io.File path,
AnyObjectId id)
Construct an ObjectLoader to read from the file. |
|
| Method Summary | |
|---|---|
byte[] |
getCachedBytes()
Obtain a reference to the (possibly cached) bytes of this object. |
long |
getRawSize()
|
int |
getRawType()
|
long |
getSize()
|
int |
getType()
|
| Methods inherited from class org.eclipse.jgit.lib.ObjectLoader |
|---|
getBytes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UnpackedObjectLoader(java.io.File path,
AnyObjectId id)
throws java.io.IOException
path - location of the loose object to read.id - expected identity of the object being loaded, if known.
java.io.FileNotFoundException - the loose object file does not exist.
java.io.IOException - the loose object file exists, but is corrupt.
public UnpackedObjectLoader(byte[] compressed)
throws CorruptObjectException
compressed - entire content of the loose object file.
CorruptObjectException - The compressed data supplied does not match the format for a
valid loose object.| Method Detail |
|---|
public int getType()
getType in class ObjectLoaderConstants.public long getSize()
getSize in class ObjectLoaderpublic byte[] getCachedBytes()
ObjectLoaderThis method offers direct access to the internal caches, potentially saving on data copies between the internal cache and higher level code. Callers who receive this reference must not modify its contents. Changes (if made) will affect the cache but not the repository itself.
getCachedBytes in class ObjectLoaderpublic int getRawType()
getRawType in class ObjectLoaderObjectLoader.getType() result
for packs (see Constants).public long getRawSize()
getRawSize in class ObjectLoaderObjectLoader.getRawType().
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||