diff options
author | Simon Rettberg | 2019-09-13 16:11:16 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-09-13 16:11:16 +0200 |
commit | 798d6f3a2ab79bab527e26b6808c973b633f7668 (patch) | |
tree | 769417f9787ae8af77fb3d254a62444a86dc57ba /src/main/java/org/openslx | |
parent | [DownloadText] Buffer everything before converting to UTF-8 (diff) | |
download | tmlite-bwlp-798d6f3a2ab79bab527e26b6808c973b633f7668.tar.gz tmlite-bwlp-798d6f3a2ab79bab527e26b6808c973b633f7668.tar.xz tmlite-bwlp-798d6f3a2ab79bab527e26b6808c973b633f7668.zip |
[DownloadText] Simplify conversion
Diffstat (limited to 'src/main/java/org/openslx')
-rw-r--r-- | src/main/java/org/openslx/taskmanager/tasks/DownloadText.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/openslx/taskmanager/tasks/DownloadText.java b/src/main/java/org/openslx/taskmanager/tasks/DownloadText.java index db0b126..3acc647 100644 --- a/src/main/java/org/openslx/taskmanager/tasks/DownloadText.java +++ b/src/main/java/org/openslx/taskmanager/tasks/DownloadText.java @@ -62,7 +62,7 @@ public class DownloadText extends AbstractTask return false; } } - status.content = new String( baos.toByteArray(), StandardCharsets.UTF_8 ); + status.content = baos.toString( StandardCharsets.UTF_8.name() ); return true; } catch ( IOException e ) { status.error = "Download error: " + e.toString(); |