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.@Deprecated public class FileTreeEntry extends TreeEntry
Tree
.Constructor and Description |
---|
FileTreeEntry(Tree parent,
ObjectId id,
byte[] nameUTF8,
boolean execute)
Deprecated.
Constructor for a File (blob) object.
|
Modifier and Type | Method and Description |
---|---|
FileMode |
getMode()
Deprecated.
|
boolean |
isExecutable()
Deprecated.
|
ObjectLoader |
openReader()
Deprecated.
|
void |
setExecutable(boolean execute)
Deprecated.
|
java.lang.String |
toString()
Deprecated.
|
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 java.io.IOException
ObjectLoader
that will return the datajava.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2012. All Rights Reserved.