Package com.jcabi.github
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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.jcabi.github.Blob
Blob.Smart
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.json.JsonObject
json()
Describe it in a JSON object.String
sha()
SHA of it.String
url()
Get its url.
-
-
-
Constructor Detail
-
Smart
public Smart(Blob blb)
Public ctor.- Parameters:
blb
- Blob
-
-
Method Detail
-
json
public javax.json.JsonObject json() throws IOException
Description copied from interface:JsonReadable
Describe it in a JSON object.- Specified by:
json
in interfaceJsonReadable
- Returns:
- JSON object
- Throws:
IOException
- If there is any I/O problem
-
url
public String url() throws IOException
Get its url.- Returns:
- Url of blob request
- Throws:
IOException
- If there is any I/O problem
-
-