| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | FULL_SIZE_THRESHOLD
|
| public static final String | HASH_FUNCTION_NAME
The name of the hash function as used in the pointer files. |
| private final AnyLongObjectId | |
| private final long | |
| public static final int | SIZE_THRESHOLD
Don't inspect files that are larger than this threshold to avoid excessive reading. |
| public static final String | VERSION
The version of the LfsPointer file format |
| public static final String | VERSION_LEGACY
The version of the LfsPointer file format using legacy URL |
| Access | Constructor and Description |
|---|---|
| public | LfsPointer(AnyLongObjectId
the id of the content oid, long the size of the content size)Constructor for LfsPointer. |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| private static boolean | |
| public int | compareTo(LfsPointer
the object to be compared. o)Implements java. Compares this object with the specified object for order. |
| public void | encode(OutputStream
the out)java. into which the encoded data should be
writtenEncode this object into the LFS format defined by |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public AnyLongObjectId | |
| public long | |
| public int | |
| private static LfsPointer | |
| private static LfsPointer | |
| public static LfsPointer | parseLfsPointer(InputStream
the in)java. from where to read the dataTry to parse the data provided by an InputStream to the format defined by
|
| public String |
| FULL_SIZE_THRESHOLD | back to summary |
|---|---|
| pack-priv static final int FULL_SIZE_THRESHOLD
| |
| HASH_FUNCTION_NAME | back to summary |
|---|---|
| public static final String HASH_FUNCTION_NAME The name of the hash function as used in the pointer files. This will evaluate to "sha256" | |
| oid | back to summary |
|---|---|
| private final AnyLongObjectId oid | |
| size | back to summary |
|---|---|
| private final long size | |
| SIZE_THRESHOLD | back to summary |
|---|---|
| public static final int SIZE_THRESHOLD Don't inspect files that are larger than this threshold to avoid excessive reading. No pointer file should be larger than this.
| |
| VERSION | back to summary |
|---|---|
| public static final String VERSION The version of the LfsPointer file format | |
| VERSION_LEGACY | back to summary |
|---|---|
| public static final String VERSION_LEGACY The version of the LfsPointer file format using legacy URL
| |
| LfsPointer | back to summary |
|---|---|
| public LfsPointer(AnyLongObjectId oid, long size) Constructor for LfsPointer.
| |
| checkVersion | back to summary |
|---|---|
| private static boolean checkVersion(byte[] data) | |
| checkVersionLine | back to summary |
|---|---|
| private static boolean checkVersionLine(String s) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(LfsPointer o) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| encode | back to summary |
|---|---|
| public void encode(OutputStream out) Encode this object into the LFS format defined by
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getOid | back to summary |
|---|---|
| public AnyLongObjectId getOid() Getter for the field
| |
| getSize | back to summary |
|---|---|
| public long getSize() Getter for the field
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| parse | back to summary |
|---|---|
private static LfsPointer parse(InputStream in) throws IOException
| |
| parse | back to summary |
|---|---|
| private static LfsPointer parse(BufferedReader r) throws IOException | |
| parseLfsPointer | back to summary |
|---|---|
| public static LfsPointer parseLfsPointer(InputStream in) throws IOException Try to parse the data provided by an InputStream to the format defined by
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |