38394041424344
public Token toOauthToken() { if (error == null || error.length() == 0) { return new Token(token, secret); } throw new DropboxBaseException("Error while taking access token: " + error); }
3233343536373839
public static String encode(String url) { try { return URLEncoder.encode(url, "UTF-8").replace("%2F", "/").replace("+", "%20"); } catch (UnsupportedEncodingException e) { throw new DropboxBaseException("UTF-8 is unsupported", e); } }