public class GHContent extends Object
GHRepository.getFileContent(String)| Constructor and Description |
|---|
GHContent() |
| Modifier and Type | Method and Description |
|---|---|
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(byte[] newContentBytes,
String commitMessage) |
GHContentUpdateResponse |
update(byte[] newContentBytes,
String commitMessage,
String branch) |
GHContentUpdateResponse |
update(String newContent,
String commitMessage) |
GHContentUpdateResponse |
update(String newContent,
String commitMessage,
String branch) |
static GHContent[] |
wrap(GHContent[] contents,
GHRepository repository) |
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
IOExceptionpublic 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
IOExceptionpublic GHContentUpdateResponse update(String newContent, String commitMessage) throws IOException
IOExceptionpublic GHContentUpdateResponse update(String newContent, String commitMessage, String branch) throws IOException
IOExceptionpublic GHContentUpdateResponse update(byte[] newContentBytes, String commitMessage) throws IOException
IOExceptionpublic GHContentUpdateResponse update(byte[] newContentBytes, String commitMessage, String branch) throws IOException
IOExceptionpublic GHContentUpdateResponse delete(String message) throws IOException
IOExceptionpublic GHContentUpdateResponse delete(String commitMessage, String branch) throws IOException
IOExceptionpublic static GHContent[] wrap(GHContent[] contents, GHRepository repository)
Copyright © 2015. All rights reserved.