net.sf.cotta.io
Class ResourceManager<P>
java.lang.Object
net.sf.cotta.io.ResourceManager<P>
- Type Parameters:
P - The processor to be used for call back
- Direct Known Subclasses:
- InputManager, OutputManager
public abstract class ResourceManager<P>
- extends java.lang.Object
resource manager that handles the resource management. This class is to
be used through its sub-classes
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceManager
public ResourceManager()
ResourceManager
public ResourceManager(java.util.List<java.io.Closeable> resourceList)
registerResource
public void registerResource(java.io.Closeable resource)
open
protected void open(P processor)
throws TIoException
- Throws:
TIoException
process
protected abstract void process(P processor)
throws java.io.IOException
- Throws:
java.io.IOException
path
protected abstract TPath path()