Package dev.vortex.io

Class Closeables

java.lang.Object
dev.vortex.io.Closeables

public final class Closeables extends Object
Helpers for closing groups of resources.
  • Method Details

    • closeAll

      public static void closeAll(Iterable<? extends Closeable> closeables) throws IOException
      Closes every item, always attempting all of them; the first failure is thrown once everything has been visited, with any further failures suppressed.
      Throws:
      IOException