public final class GHContent extends Object
| 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() |
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 GHContentUpdateResponse update(String newContent, String commitMessage) throws IOException
IOExceptionpublic GHContentUpdateResponse update(String newContent, 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 © 2014. All rights reserved.