Class Blob.Smart

java.lang.Object
com.jcabi.github.Blob.Smart
All Implemented Interfaces:
Blob, JsonReadable
Enclosing interface:
Blob

@Immutable @Loggable(1) public static final class Blob.Smart extends Object implements Blob
Smart Blob with extra features.
Since:
0.5
  • Constructor Details

    • Smart

      public Smart(Blob blb)
      Public ctor.
      Parameters:
      blb - Blob
  • Method Details

    • json

      public jakarta.json.JsonObject json() throws IOException
      Description copied from interface: JsonReadable
      Describe it in a JSON object.
      Specified by:
      json in interface JsonReadable
      Returns:
      JSON object
      Throws:
      IOException - If there is any I/O problem
    • sha

      public String sha()
      Description copied from interface: Blob
      SHA of it.
      Specified by:
      sha in interface Blob
      Returns:
      SHA
    • url

      public String url() throws IOException
      Get its url.
      Returns:
      Url of blob request
      Throws:
      IOException - If there is any I/O problem