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 StringgetContent()Content of this file.StringgetFileName()Gets file name.StringgetLanguage()Gets language.StringgetRawUrl()URL that serves this file as-is.intgetSize()File size in bytes.StringgetType()Content type of this Gist, such as "text/plain"booleanisTruncated()(?) 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
-
-