| Modifier and Type | Field and Description |
|---|---|
| private final FileObjectDatabase | |
| private final int | |
| private final long | |
| private final Pack | |
| private final long | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv | LargePackedWholeObject(int type, long size, long objectOffset, int headerLength, Pack pack, FileObjectDatabase db)
|
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | getCachedBytes()
Implements abstract org. Obtain a reference to the (possibly cached) bytes of this object. |
| private ObjectId | |
| public long | |
| public int | |
| public boolean | isLarge()
Overrides org. Whether this object is too large to obtain as a byte array. |
| public ObjectStream | openStream()
Implements abstract org. Obtain an input stream to read this object's data. |
| db | back to summary |
|---|---|
| private final FileObjectDatabase db | |
| headerLength | back to summary |
|---|---|
| private final int headerLength | |
| objectOffset | back to summary |
|---|---|
| private final long objectOffset | |
| pack | back to summary |
|---|---|
| private final Pack pack | |
| size | back to summary |
|---|---|
| private final long size | |
| type | back to summary |
|---|---|
| private final int type | |
| LargePackedWholeObject | back to summary |
|---|---|
| pack-priv LargePackedWholeObject(int type, long size, long objectOffset, int headerLength, Pack pack, FileObjectDatabase db) | |
| getCachedBytes | back to summary |
|---|---|
| public byte[] getCachedBytes() throws LargeObjectException Implements abstract org. Doc from org. Obtain a reference to the (possibly cached) bytes of this object. 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.
| |
| getObjectId | back to summary |
|---|---|
| private ObjectId getObjectId() throws IOException | |
| getSize | back to summary |
|---|---|
| public long getSize() Implements abstract org. Doc from org. Get size of object in bytes
| |
| getType | back to summary |
|---|---|
| public int getType() Implements abstract org. Doc from org. Get Git in pack object type
| |
| isLarge | back to summary |
|---|---|
| public boolean isLarge() Overrides org. Doc from org. Whether this object is too large to obtain as a byte array.
| |
| openStream | back to summary |
|---|---|
| public ObjectStream openStream() throws MissingObjectException, IOException Implements abstract org. Doc from org. Obtain an input stream to read this object's data.
| |