@Immutable @Loggable(value=1) public static final class Gist.Smart extends Object implements Gist
Gist.Smart
Constructor and Description |
---|
Gist.Smart(Gist gst)
Public ctor.
|
Modifier and Type | Method and Description |
---|---|
Iterable<String> |
files()
Get a list of all file names in the gist.
|
Github |
github()
Github we're in.
|
javax.json.JsonObject |
json()
Describe it in a JSON object.
|
String |
read(String name)
Read file content.
|
void |
write(String name,
String content)
Write file content.
|
public Gist.Smart(Gist gst)
gst
- Gistpublic Iterable<String> files() throws IOException
IOException
- If there is any I/O problempublic String read(String name) throws IOException
Gist
read
in interface Gist
name
- Name of itIOException
- If there is any I/O problempublic void write(String name, String content) throws IOException
Gist
write
in interface Gist
name
- Name of itcontent
- Content to writeIOException
- If there is any I/O problempublic javax.json.JsonObject json() throws IOException
JsonReadable
json
in interface JsonReadable
IOException
- If there is any I/O problemCopyright © 2012–2014 jcabi.com. All rights reserved.