aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src/main/java
diff options
context:
space:
mode:
authorDavid Gageot <david@gageot.net>2012-07-16 11:31:48 +0200
committerDavid Gageot <david@gageot.net>2012-07-16 11:32:26 +0200
commit1acae829018ed8a78292e2cc3bb9c7c17c581c50 (patch)
treee459d6788d0c51ebb3b937eb8ece286f064e08e7 /sonar-plugin-api/src/main/java
parent2a4848aa8dfd28c0b551c7bb9e42dad5b6e8372f (diff)
downloadsonarqube-1acae829018ed8a78292e2cc3bb9c7c17c581c50.tar.gz
sonarqube-1acae829018ed8a78292e2cc3bb9c7c17c581c50.zip
Restore Api compatibility
Diffstat (limited to 'sonar-plugin-api/src/main/java')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/utils/HttpDownloader.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/HttpDownloader.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/HttpDownloader.java
index 6a2e6332ae5..f555cc72291 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/HttpDownloader.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/HttpDownloader.java
@@ -152,8 +152,12 @@ public class HttpDownloader extends UriReader.SchemeProcessor implements BatchCo
}
}
- public String downloadPlainText(URI uri, Charset charset) {
- return readString(uri, charset);
+ public byte[] download(URI uri) {
+ return readBytes(uri);
+ }
+
+ public String downloadPlainText(URI uri, String encoding) {
+ return readString(uri, Charset.forName(encoding));
}
public void download(URI uri, File toFile) {