public abstract static class ObjectLoader.Filter extends ObjectLoader
ObjectLoader.Filter, ObjectLoader.SmallObject
Constructor and Description |
---|
Filter() |
Modifier and Type | Method and Description |
---|---|
protected abstract ObjectLoader |
delegate() |
byte[] |
getCachedBytes()
Obtain a reference to the (possibly cached) bytes of this object.
|
long |
getSize()
Get size of object in bytes
|
int |
getType()
Get Git in pack object type
|
boolean |
isLarge()
Whether this object is too large to obtain as a byte array.
|
ObjectStream |
openStream()
Obtain an input stream to read this object's data.
|
copyTo, getBytes, getBytes, getCachedBytes
protected abstract ObjectLoader delegate()
public int getType()
ObjectLoader
getType
in class ObjectLoader
Constants
.public long getSize()
ObjectLoader
getSize
in class ObjectLoader
public boolean isLarge()
ObjectLoader
isLarge
in class ObjectLoader
ObjectLoader.openStream()
to prevent overflowing the JVM heap.public byte[] getCachedBytes()
ObjectLoader
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.
getCachedBytes
in class ObjectLoader
public ObjectStream openStream() throws IOException
ObjectLoader
openStream
in class ObjectLoader
MissingObjectException
- the object no longer exists.IOException
- the object store cannot be accessed.Copyright © 2018 Eclipse JGit Project. All rights reserved.