summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-10-20 04:02:00 (EDT)
committerEike Stepper2007-10-20 04:02:00 (EDT)
commit38b3a15ac6437978cb498edc4dc79249f9355d53 (patch)
tree22affd5eb9e3c5ed043ed36de5008d4f0eaba285
parentce2b849a1907d57c8aeffcae86f5c3ecc05226d8 (diff)
downloadcdo-38b3a15ac6437978cb498edc4dc79249f9355d53.zip
cdo-38b3a15ac6437978cb498edc4dc79249f9355d53.tar.gz
cdo-38b3a15ac6437978cb498edc4dc79249f9355d53.tar.bz2
Added open(String) methods
-rw-r--r--plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/io/IOUtil.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/io/IOUtil.java b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/io/IOUtil.java
index 1f5aa29..84310f6 100644
--- a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/io/IOUtil.java
+++ b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/io/IOUtil.java
@@ -66,6 +66,11 @@ public final class IOUtil
print(t, System.err);
}
+ public static FileInputStream openInputStream(String fileName) throws IORuntimeException
+ {
+ return openInputStream(new File(fileName));
+ }
+
public static FileInputStream openInputStream(File file) throws IORuntimeException
{
try
@@ -78,6 +83,11 @@ public final class IOUtil
}
}
+ public static FileOutputStream openOutputStream(String fileName) throws IORuntimeException
+ {
+ return openOutputStream(new File(fileName));
+ }
+
public static FileOutputStream openOutputStream(File file) throws IORuntimeException
{
try
@@ -90,6 +100,11 @@ public final class IOUtil
}
}
+ public static FileReader openReader(String fileName) throws IORuntimeException
+ {
+ return openReader(new File(fileName));
+ }
+
public static FileReader openReader(File file) throws IORuntimeException
{
try
@@ -102,6 +117,11 @@ public final class IOUtil
}
}
+ public static FileWriter openWriter(String fileName) throws IORuntimeException
+ {
+ return openWriter(new File(fileName));
+ }
+
public static FileWriter openWriter(File file) throws IORuntimeException
{
try