Class GHBlob

java.lang.Object
org.kohsuke.github.GHBlob

public class GHBlob extends Object
The type GHBlob.
Author:
Kanstantsin Shautsou, Kohsuke Kawaguchi
See Also:
  • Constructor Details

    • GHBlob

      public GHBlob()
  • Method Details

    • 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.