@Immutable @Loggable(value=1) public static final class Content.Smart extends Object implements Content
Content.Smart| Constructor and Description |
|---|
Content.Smart(Content cont)
Public ctor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Content cont) |
String |
content()
Get its encoded content.
|
byte[] |
decoded()
Get its decoded content.
|
URL |
gitUrl()
Get its GIT URL.
|
URL |
htmlUrl()
Get its HTML URL.
|
javax.json.JsonObject |
json()
Describe it in a JSON object.
|
String |
name()
Get its name.
|
void |
patch(javax.json.JsonObject json)
Patch using this JSON object.
|
String |
path()
Get its path name.
|
InputStream |
raw()
Get the raw contents.
|
Repo |
repo()
Repository we're in.
|
String |
sha()
Get its sha hash.
|
int |
size()
Get its size.
|
String |
type()
Get its type.
|
URL |
url()
Get its URL.
|
public Content.Smart(@NotNull(message="content is never NULL")
Content cont)
cont - Content@NotNull(message="name is never NULL") public String name() throws IOException
IOException - If there is any I/O problem@NotNull(message="type is never NULL") public String type() throws IOException
IOException - If there is any I/O problempublic int size()
throws IOException
IOException - If it fails@NotNull(message="sha is never NULL") public String sha() throws IOException
IOException - If there is any I/O problem@NotNull(message="url is never NULL") public URL url() throws IOException
IOException - If there is any I/O problem@NotNull(message="html url is never NULL") public URL htmlUrl() throws IOException
IOException - If there is any I/O problem@NotNull(message="git url is never NULL") public URL gitUrl() throws IOException
IOException - If there is any I/O problem@NotNull(message="content is never NULL") public String content() throws IOException
IOException - If there is any I/O problem@NotNull(message="decoded is never NULL")
public byte[] decoded()
throws IOException
IOException - If there is any I/O problempublic int compareTo(@NotNull(message="cont can\'t be NULL")
Content cont)
compareTo in interface Comparable<Content>public void patch(@NotNull(message="JSON is never NULL")
javax.json.JsonObject json)
throws IOException
JsonPatchablepatch in interface JsonPatchablejson - JSON objectIOException - If there is any I/O problem@NotNull(message="JSON is never NULL")
public javax.json.JsonObject json()
throws IOException
JsonReadablejson in interface JsonReadableIOException - If there is any I/O problem@NotNull(message="Repository is never NULL") public Repo repo()
Content@NotNull(message="path is never NULL") public String path()
Content@NotNull(message="input stream is never NULL") public InputStream raw() throws IOException
Contentraw in interface ContentIOException - If an IO error occursCopyright © 2012–2014 jcabi.com. All rights reserved.