java.lang.Object
org.kohsuke.github.GHBlobBuilder
Builder pattern for creating a new blob. Based on https://developer.github.com/v3/git/blobs/#create-a-blob
-
Method Summary
Modifier and TypeMethodDescriptionbinaryContent
(byte[] content) Configures a blob with the specified binarycontent
.create()
Creates a blob based on the parameters specified thus far.textContent
(String content) Configures a blob with the specified textcontent
.
-
Method Details
-
textContent
Configures a blob with the specified textcontent
.- Parameters:
content
- string text of the blob- Returns:
- a GHBlobBuilder
-
binaryContent
Configures a blob with the specified binarycontent
.- Parameters:
content
- byte array of the blob- Returns:
- a GHBlobBuilder
-
create
Creates a blob based on the parameters specified thus far.- Returns:
- a GHBlob
- Throws:
IOException
- if the blob cannot be created.
-