Package dev.voidframework.core.helper
Class IO
java.lang.Object
dev.voidframework.core.helper.IO
IO utility methods.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcloseWithoutException(Closeable closeable) Closes the given closeable without any exceptions.static voidcloseWithoutException(InputStream inputStream) Closes the given input stream without any exceptions.static voidcloseWithoutException(OutputStream outputStream) Closes the given output stream without any exceptions.
-
Method Details
-
closeWithoutException
Closes the given closeable without any exceptions. This is typically used in finally blocks.- Parameters:
closeable- The closeable to close
-
closeWithoutException
Closes the given input stream without any exceptions. This is typically used in finally blocks.- Parameters:
inputStream- The input stream to close
-
closeWithoutException
Closes the given output stream without any exceptions. This is typically used in finally blocks.- Parameters:
outputStream- The output stream to close
-