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, getCachedBytesprotected abstract ObjectLoader delegate()
public int getType()
ObjectLoadergetType in class ObjectLoaderConstants.public long getSize()
ObjectLoadergetSize in class ObjectLoaderpublic boolean isLarge()
ObjectLoaderisLarge in class ObjectLoaderObjectLoader.openStream() to prevent overflowing the JVM heap.public 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 ObjectStream openStream() throws IOException
ObjectLoaderopenStream in class ObjectLoaderMissingObjectException - the object no longer exists.IOException - the object store cannot be accessed.Copyright © 2020 Eclipse JGit Project. All rights reserved.