Class IO

java.lang.Object
dev.voidframework.core.helper.IO

public final class IO extends Object
IO utility methods.
  • Method Details

    • closeWithoutException

      public static void closeWithoutException(Closeable closeable)
      Closes the given closeable without any exceptions. This is typically used in finally blocks.
      Parameters:
      closeable - The closeable to close
    • closeWithoutException

      public static void closeWithoutException(InputStream inputStream)
      Closes the given input stream without any exceptions. This is typically used in finally blocks.
      Parameters:
      inputStream - The input stream to close
    • closeWithoutException

      public static void closeWithoutException(OutputStream outputStream)
      Closes the given output stream without any exceptions. This is typically used in finally blocks.
      Parameters:
      outputStream - The output stream to close