|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kohsuke.github.GHContent
public class GHContent
A Content of a repository.
GHRepository.getFileContent(String)| Constructor Summary | |
|---|---|
GHContent()
|
|
| Method Summary | |
|---|---|
GHContentUpdateResponse |
delete(String message)
|
GHContentUpdateResponse |
delete(String commitMessage,
String branch)
|
String |
getContent()
Retrieve the decoded content that is stored at this location. |
String |
getEncodedContent()
Retrieve the raw content that is stored at this location. |
String |
getEncoding()
|
String |
getGitUrl()
|
String |
getHtmlUrl()
|
String |
getName()
|
GHRepository |
getOwner()
|
String |
getPath()
|
String |
getSha()
|
long |
getSize()
|
String |
getType()
|
String |
getUrl()
|
boolean |
isDirectory()
|
boolean |
isFile()
|
PagedIterable<GHContent> |
listDirectoryContent()
List immediate children of this directory. |
GHContentUpdateResponse |
update(String newContent,
String commitMessage)
|
GHContentUpdateResponse |
update(String newContent,
String commitMessage,
String branch)
|
static GHContent[] |
wrap(GHContent[] contents,
GHRepository repository)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GHContent()
| Method Detail |
|---|
public GHRepository getOwner()
public String getType()
public String getEncoding()
public long getSize()
public String getSha()
public String getName()
public String getPath()
public String getContent()
throws IOException
IOException
public String getEncodedContent()
throws IOException
IOExceptionpublic String getUrl()
public String getGitUrl()
public String getHtmlUrl()
public boolean isFile()
public boolean isDirectory()
public PagedIterable<GHContent> listDirectoryContent()
throws IOException
IOException
public GHContentUpdateResponse update(String newContent,
String commitMessage)
throws IOException
IOException
public GHContentUpdateResponse update(String newContent,
String commitMessage,
String branch)
throws IOException
IOException
public GHContentUpdateResponse delete(String message)
throws IOException
IOException
public GHContentUpdateResponse delete(String commitMessage,
String branch)
throws IOException
IOException
public static GHContent[] wrap(GHContent[] contents,
GHRepository repository)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||