Package org.apache.parquet
Class Closeables
java.lang.Object
org.apache.parquet.Closeables
Deprecated.
will be removed in 2.0.0. Use Java try-with-resource instead.
Utility for working with
Closeabless-
Method Summary
Modifier and TypeMethodDescriptionstatic voidDeprecated.Closes a (potentially null) closeable.static voidDeprecated.Closes a (potentially null) closeable, swallowing any IOExceptions thrown by c.close().
-
Method Details
-
close
Deprecated.Closes a (potentially null) closeable.- Parameters:
c- can be null- Throws:
IOException- if c.close() throws an IOException.
-
closeAndSwallowIOExceptions
Deprecated.Closes a (potentially null) closeable, swallowing any IOExceptions thrown by c.close(). The exception will be logged.- Parameters:
c- can be null
-