}
// File functions
@Override
public InputStream getInputStream() throws IOException {
RestClient c = createGitClient(getUserName(),getPassword());
String path = URLEncoding.encodeURIString(getPath(),"utf-8",0,false);
try {
Map<String,Object> json = (Map<String,Object>)c.get(path,new RestClient.HandlerJson(JsonJavaFactory.instance)).getData();
String content = (String)json.get("content");
if(content!=null) {
String encoding = (String)json.get("encoding");
if(StringUtil.equals(encoding, "base64")) {
return new Base64.InputStream(new StringInputStream(content));