Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Merks2021-12-17 04:53:28 +0000
committerEd Merks2021-12-17 04:53:28 +0000
commitdb771a19e5ecd2ff82165b940873314f7b17f5b2 (patch)
treee496efdf1e33503589ed6b41eaca0647f1b2f662 /plugins/org.eclipse.oomph.util/src/org
parent1ad602b0235d314a94d7faa3e7a4bc63c5cc44be (diff)
downloadorg.eclipse.oomph-db771a19e5ecd2ff82165b940873314f7b17f5b2.tar.gz
org.eclipse.oomph-db771a19e5ecd2ff82165b940873314f7b17f5b2.tar.xz
org.eclipse.oomph-db771a19e5ecd2ff82165b940873314f7b17f5b2.zip
[577848] Avoid generating inappropriate GTK_IM_MODULE env for Linux
desktop links Ensure this compiles for Java 8. https://bugs.eclipse.org/bugs/show_bug.cgi?id=577848
Diffstat (limited to 'plugins/org.eclipse.oomph.util/src/org')
-rw-r--r--plugins/org.eclipse.oomph.util/src/org/eclipse/oomph/util/IOUtil.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/org.eclipse.oomph.util/src/org/eclipse/oomph/util/IOUtil.java b/plugins/org.eclipse.oomph.util/src/org/eclipse/oomph/util/IOUtil.java
index e08137fd6..7b577e632 100644
--- a/plugins/org.eclipse.oomph.util/src/org/eclipse/oomph/util/IOUtil.java
+++ b/plugins/org.eclipse.oomph.util/src/org/eclipse/oomph/util/IOUtil.java
@@ -829,6 +829,18 @@ public final class IOUtil
public static String readUTF8(File file) throws Exception
{
InputStream inputStream = new FileInputStream(file);
+ try
+ {
+ return readUTF8(inputStream);
+ }
+ finally
+ {
+ close(inputStream);
+ }
+ }
+
+ public static String readUTF8(InputStream inputStream) throws Exception
+ {
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
try

Back to the top