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
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    Smart Content with extra features.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get its path name.
    raw()
    Get the raw contents.
    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 Details

    • 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