net.sf.cotta.io
Class ResourceManager<P>

java.lang.Object
  extended by 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


Constructor Summary
ResourceManager()
           
ResourceManager(java.util.List<java.io.Closeable> resourceList)
           
 
Method Summary
protected  void open(P processor)
           
protected abstract  TPath path()
           
protected abstract  void process(P processor)
           
 void registerResource(java.io.Closeable resource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceManager

public ResourceManager()

ResourceManager

public ResourceManager(java.util.List<java.io.Closeable> resourceList)
Method Detail

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()