Class IOUtils

java.lang.Object
org.axonframework.common.io.IOUtils

public final class IOUtils extends Object
Utility methods for IO operations.
Since:
2.0
Author:
Allard Buijze, Knut-Olav Hoven
  • Field Details

    • UTF8

      public static final Charset UTF8
      Represents the UTF-8 character set.
  • Method Details

    • closeQuietly

      public static void closeQuietly(AutoCloseable closeable)
      Closes any AutoCloseable object, while suppressing any IOExceptions it will generate. The given closeable may be null, in which case nothing happens.
      Parameters:
      closeable - the object to be closed
    • closeQuietlyIfCloseable

      public static void closeQuietlyIfCloseable(Object closeable)
      Closes any object if that object implements AutoCloseable, while suppressing any IOExceptions it will generate. The given closeable may be null, in which case nothing happens.
      Parameters:
      closeable - the object to be closed