|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.jgit.lib.ObjectLoader
public abstract class ObjectLoader
Base class for a set of loaders for different representations of Git objects. New loaders are constructed for every object.
| Constructor Summary | |
|---|---|
ObjectLoader()
|
|
| Method Summary | |
|---|---|
byte[] |
getBytes()
Obtain a copy of the bytes of this object. |
abstract byte[] |
getCachedBytes()
Obtain a reference to the (possibly cached) bytes of this object. |
abstract long |
getRawSize()
|
abstract int |
getRawType()
|
abstract long |
getSize()
|
abstract int |
getType()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectLoader()
| Method Detail |
|---|
public abstract int getType()
Constants.public abstract long getSize()
public final byte[] getBytes()
Unlike getCachedBytes() this method returns an array that might
be modified by the caller.
public abstract byte[] getCachedBytes()
This 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.
public abstract int getRawType()
getType() result
for packs (see Constants).public abstract long getRawSize()
getRawType().
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||