Class GHGistFile

java.lang.Object
org.kohsuke.github.GHGistFile

public class GHGistFile extends Object
A file inside GHGist.
Author:
Kohsuke Kawaguchi
See Also:
  • Constructor Details

    • GHGistFile

      public GHGistFile()
      Create default GHGistFile instance
  • Method Details

    • getFileName

      public String getFileName()
      Gets file name.
      Returns:
      the file name
    • getSize

      public int getSize()
      File size in bytes.
      Returns:
      the size
    • getRawUrl

      public String getRawUrl()
      URL that serves this file as-is.
      Returns:
      the raw url
    • getType

      public String getType()
      Content type of this Gist, such as "text/plain".
      Returns:
      the type
    • getLanguage

      public String getLanguage()
      Gets language.
      Returns:
      the language
    • getContent

      public String getContent()
      Content of this file.
      Returns:
      the content
    • isTruncated

      public boolean isTruncated()
      (?) indicates if getContent() contains a truncated content.
      Returns:
      the boolean