| Constructor and Description |
|---|
GHTreeEntry() |
| Modifier and Type | Method and Description |
|---|---|
GHBlob |
asBlob()
If this tree entry represents a file, then return its information.
|
GHTree |
asTree()
If this tree entry represents a directory, then return it.
|
String |
getMode()
Get mode such as 100644
|
String |
getPath()
Get the path such as "subdir/file.txt"
|
String |
getSha()
SHA1 of this object.
|
long |
getSize()
Gets the size of the file, such as 132
|
String |
getType()
Gets the type such as: "blob", "tree", etc.
|
URL |
getUrl()
API URL to this Git data, such as https://api.github.com/repos/jenkinsci
/jenkins/git/commits/b72322675eb0114363a9a86e9ad5a170d1d07ac0
|
InputStream |
readAsBlob()
If this tree entry represents a file, then return its content.
|
public String getPath()
public String getMode()
public long getSize()
public String getType()
public String getSha()
public URL getUrl()
public GHBlob asBlob() throws IOException
IOException - the io exceptionpublic InputStream readAsBlob() throws IOException
IOException - the io exceptionpublic GHTree asTree() throws IOException
IOException - the io exceptionCopyright © 2020. All rights reserved.