Package org.axonframework.common.io
Class IOUtils
java.lang.Object
org.axonframework.common.io.IOUtils
Utility methods for IO operations.
- Since:
- 2.0
- Author:
- Allard Buijze, Knut-Olav Hoven
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcloseQuietly(AutoCloseable closeable) Closes any AutoCloseable object, while suppressing any IOExceptions it will generate.static voidcloseQuietlyIfCloseable(Object closeable) Closes any object if that object implementsAutoCloseable, while suppressing any IOExceptions it will generate.
-
Field Details
-
UTF8
Represents the UTF-8 character set.
-
-
Method Details
-
closeQuietly
Closes any AutoCloseable object, while suppressing any IOExceptions it will generate. The givencloseablemay benull, in which case nothing happens.- Parameters:
closeable- the object to be closed
-
closeQuietlyIfCloseable
Closes any object if that object implementsAutoCloseable, while suppressing any IOExceptions it will generate. The givencloseablemay benull, in which case nothing happens.- Parameters:
closeable- the object to be closed
-