Package com.jcabi.github
Interface Content
-
- All Superinterfaces:
Comparable<Content>
,JsonPatchable
,JsonReadable
- All Known Implementing Classes:
Content.Smart
@Immutable public interface Content extends Comparable<Content>, JsonReadable, JsonPatchable
Github content.- Since:
- 0.8
- Version:
- $Id: 02c2aed2c9044c3f5282d694e42c24537132d6e7 $
- Author:
- Andres Candal (andres.candal@rollasolution.com)
- See Also:
- Contents API
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Content.Smart
Smart Content with extra features.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
path()
Get its path name.InputStream
raw()
Get the raw contents.Repo
repo()
Repository we're in.-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface com.jcabi.github.JsonPatchable
patch
-
Methods inherited from interface com.jcabi.github.JsonReadable
json
-
-
-
-
Method Detail
-
repo
Repo repo()
Repository we're in.- Returns:
- Repo
-
path
String path()
Get its path name.- Returns:
- The path name
-
raw
InputStream raw() throws IOException
Get the raw contents.- Returns:
- Input stream of the raw content
- Throws:
IOException
- If an IO error occurs
-
-