Package org.kohsuke.github
Class GHBlob
- java.lang.Object
-
- org.kohsuke.github.GHBlob
-
public class GHBlob extends Object
The type GHBlob.- Author:
- Kanstantsin Shautsou, Kohsuke Kawaguchi
- See Also:
GHTreeEntry#asBlob(),GHRepository#getBlob(String), Get a blob
-
-
Constructor Summary
Constructors Constructor Description GHBlob()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContent()Gets content.StringgetEncoding()Gets encoding.StringgetSha()Gets sha.longgetSize()Gets size.URLgetUrl()Gets url.InputStreamread()Read input stream.
-
-
-
Method Detail
-
getUrl
public URL getUrl()
Gets url.- Returns:
- API URL of this blob.
-
getSha
public String getSha()
Gets sha.- Returns:
- the sha
-
getSize
public long getSize()
Gets size.- Returns:
- Number of bytes in this blob.
-
getEncoding
public String getEncoding()
Gets encoding.- Returns:
- the encoding
-
getContent
public String getContent()
Gets content.- Returns:
- Encoded content. You probably want
read()
-
read
public InputStream read()
Read input stream.- Returns:
- the actual bytes of the blob.
-
-