Files
github-api/jacoco/org.kohsuke.github/GHGistFile.java.html
2021-06-02 11:09:28 -07:00

80 lines
2.9 KiB
HTML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>GHGistFile.java</title><link rel="stylesheet" href="../jacoco-resources/prettify.css" type="text/css"/><script type="text/javascript" src="../jacoco-resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">GitHub API for Java</a> &gt; <a href="index.source.html" class="el_package">org.kohsuke.github</a> &gt; <span class="el_source">GHGistFile.java</span></div><h1>GHGistFile.java</h1><pre class="source lang-java linenums">package org.kohsuke.github;
/**
* A file inside {@link GHGist}
*
* @author Kohsuke Kawaguchi
* @see GHGist#getFile(String) GHGist#getFile(String)
* @see GHGist#getFiles() GHGist#getFiles()
*/
<span class="fc" id="L10">public class GHGistFile {</span>
/* package almost final */ String fileName;
private int size;
private String raw_url, type, language, content;
private boolean truncated;
/**
* Gets file name.
*
* @return the file name
*/
public String getFileName() {
<span class="nc" id="L23"> return fileName;</span>
}
/**
* File size in bytes.
*
* @return the size
*/
public int getSize() {
<span class="nc" id="L32"> return size;</span>
}
/**
* URL that serves this file as-is.
*
* @return the raw url
*/
public String getRawUrl() {
<span class="nc" id="L41"> return raw_url;</span>
}
/**
* Content type of this Gist, such as &quot;text/plain&quot;
*
* @return the type
*/
public String getType() {
<span class="fc" id="L50"> return type;</span>
}
/**
* Gets language.
*
* @return the language
*/
public String getLanguage() {
<span class="fc" id="L59"> return language;</span>
}
/**
* Content of this file.
*
* @return the content
*/
public String getContent() {
<span class="fc" id="L68"> return content;</span>
}
/**
* (?) indicates if {@link #getContent()} contains a truncated content.
*
* @return the boolean
*/
public boolean isTruncated() {
<span class="nc" id="L77"> return truncated;</span>
}
}
</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.7.202105040129</span></div></body></html>