public class ResourceManager
extends java.lang.Object
| Constructor and Description |
|---|
ResourceManager()
Default non-arg constructor.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
run(ResourceHandler<T> handler)
Runs the resource handler.
|
void |
run(VoidResourceHandler handler)
Runs the resource handler.
|
ResourceManager |
with(java.io.Closeable theResource)
Creates a new instance of
ResourceManager with the resource specified. |
public final ResourceManager with(java.io.Closeable theResource)
ResourceManager with the resource specified.theResource - The closeable resource specified.ResourceManager created.public final <T> T run(ResourceHandler<T> handler) throws java.io.IOException
T - The result type specified.handler - The resource handler specified.java.io.IOException - If IO errors occur.public final void run(VoidResourceHandler handler) throws java.io.IOException
handler - The resource handler specified.java.io.IOException - If IO errors occur.