@Deprecated
public class Closer
extends java.lang.Object
null
before being closed, and every possible execption is
swallowed. That makes this class perfect for use in the finally blocks of
try-catch-finally blocks.Constructor and Description |
---|
Closer()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static void |
close(Bucket bucket)
Deprecated.
Frees the given bucket.
|
static void |
close(java.io.Closeable closable)
Deprecated.
Closes the given stream.
|
static void |
close(java.util.zip.ZipFile zipFile)
Deprecated.
Closes the given zip file.
|
public static void close(java.io.Closeable closable)
closable
- The output stream to closepublic static void close(Bucket bucket)
bucket
- The Bucket to close.public static void close(java.util.zip.ZipFile zipFile)
zipFile
- The zip file to close