Comparable
@Deprecated public class FileTreeEntry extends TreeEntry
TreeWalk.forPath(Repository, String, org.eclipse.jgit.revwalk.RevTree)
.
To lookup information about multiple paths at once, use a
TreeWalk
and obtain the current entry's
information from its getter methods.Tree
.Constructor | Description |
---|---|
FileTreeEntry(Tree parent,
ObjectId id,
byte[] nameUTF8,
boolean execute) |
Deprecated.
Constructor for a File (blob) object.
|
Modifier and Type | Method | Description |
---|---|---|
FileMode |
getMode() |
Deprecated.
|
boolean |
isExecutable() |
Deprecated.
|
ObjectLoader |
openReader() |
Deprecated.
|
void |
setExecutable(boolean execute) |
Deprecated.
|
String |
toString() |
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
compareTo, delete, detachParent, getFullName, getFullNameUTF8, getId, getName, getNameUTF8, getParent, getRepository, isModified, lastChar, rename, rename, setId, setModified
public FileTreeEntry(Tree parent, ObjectId id, byte[] nameUTF8, boolean execute)
parent
- The Tree
holding this object (or null)id
- the SHA-1 of the blob (or null for a yet unhashed file)nameUTF8
- raw object name in the parent treeexecute
- true if the executable flag is setpublic FileMode getMode()
public boolean isExecutable()
public void setExecutable(boolean execute)
execute
- set/reset the executable flagpublic ObjectLoader openReader() throws IOException
ObjectLoader
that will return the dataIOException
Copyright © 2018. All rights reserved.