Package org.kohsuke.github
Class GHGistFile
- java.lang.Object
-
- org.kohsuke.github.GHGistFile
-
public class GHGistFile extends Object
A file insideGHGist
- Author:
- Kohsuke Kawaguchi
- See Also:
GHGist#getFile(String)
,GHGist#getFiles()
-
-
Constructor Summary
Constructors Constructor Description GHGistFile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContent()
Content of this file.String
getFileName()
Gets file name.String
getLanguage()
Gets language.String
getRawUrl()
URL that serves this file as-is.int
getSize()
File size in bytes.String
getType()
Content type of this Gist, such as "text/plain"boolean
isTruncated()
(?) indicates ifgetContent()
contains a truncated content.
-
-
-
Method Detail
-
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 ifgetContent()
contains a truncated content.- Returns:
- the boolean
-
-