| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static BufferedInputStream | |
| pack-priv static void | |
| pack-priv static long | |
| pack-priv static InputStream | |
| private static InflaterInputStream | |
| pack-priv static boolean | |
| pack-priv static ObjectLoader | |
| public static ObjectLoader | Returns: loader to read the inflated contents.complete contents of the compressed object. raw, AnyObjectId expected ObjectId of the object, used only for error reporting
in exceptions. id)Parse an object from the unpacked object format. |
| pack-priv static int |
| BUFFER_SIZE | back to summary |
|---|---|
| private static final int BUFFER_SIZE | |
| UnpackedObject | back to summary |
|---|---|
| public UnpackedObject() | |
| buffer | back to summary |
|---|---|
| pack-priv static BufferedInputStream buffer(InputStream in) | |
| checkValidEndOfStream | back to summary |
|---|---|
| pack-priv static void checkValidEndOfStream(InputStream in, Inflater inf, AnyObjectId id, final byte[] buf) throws IOException, CorruptObjectException | |
| getSize | back to summary |
|---|---|
| pack-priv static long getSize(InputStream in, AnyObjectId id, WindowCursor wc) throws IOException | |
| inflate | back to summary |
|---|---|
| pack-priv static InputStream inflate(final InputStream in, final long size, final ObjectId id) | |
| inflate | back to summary |
|---|---|
| private static InflaterInputStream inflate(InputStream in, Inflater inf) | |
| isStandardFormat | back to summary |
|---|---|
| pack-priv static boolean isStandardFormat(byte[] hdr) | |
| open | back to summary |
|---|---|
| pack-priv static ObjectLoader open(InputStream in, File path, AnyObjectId id, WindowCursor wc) throws IOException | |
| parse | back to summary |
|---|---|
| public static ObjectLoader parse(byte[] raw, AnyObjectId id) throws IOException Parse an object from the unpacked object format.
| |
| readSome | back to summary |
|---|---|
| pack-priv static int readSome(InputStream in, final byte[] hdr, int off, int cnt) throws IOException | |
| Modifier and Type | Field and Description |
|---|---|
| private final ObjectId | |
| private final File | |
| private final long | |
| private final FileObjectDatabase | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | getCachedBytes()
Implements abstract org. Obtain a reference to the (possibly cached) bytes of this object. |
| 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. |
| id | back to summary |
|---|---|
| private final ObjectId id | |
| path | back to summary |
|---|---|
| private final File path | |
| size | back to summary |
|---|---|
| private final long size | |
| source | back to summary |
|---|---|
| private final FileObjectDatabase source | |
| type | back to summary |
|---|---|
| private final int type | |
| LargeObject | back to summary |
|---|---|
| pack-priv LargeObject(int type, long size, File path, AnyObjectId id, 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.
| |
| 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.
| |