diff --git a/aksw-commons-io-parent/aksw-commons-io-utils/src/main/java/org/aksw/commons/io/util/StdIo.java b/aksw-commons-io-parent/aksw-commons-io-utils/src/main/java/org/aksw/commons/io/util/StdIo.java index 24b2981b..b818262b 100644 --- a/aksw-commons-io-parent/aksw-commons-io-utils/src/main/java/org/aksw/commons/io/util/StdIo.java +++ b/aksw-commons-io-parent/aksw-commons-io-utils/src/main/java/org/aksw/commons/io/util/StdIo.java @@ -30,16 +30,15 @@ public static InputStream openStdIn() { return new FileInputStream(FileDescriptor.in); } - public static OutputStream openStdOutWithCloseShield() { - return new CloseShieldOutputStream(openStdOut()); + return CloseShieldOutputStream.wrap(openStdOut()); } public static OutputStream openStdErrWithCloseShield() { - return new CloseShieldOutputStream(openStdErr()); + return CloseShieldOutputStream.wrap(openStdErr()); } public static InputStream openStdInWithCloseShield() { - return new CloseShieldInputStream(openStdIn()); + return CloseShieldInputStream.wrap(openStdIn()); } }