org.crosswire.jsword.book.sword.state
Class AbstractOpenFileState
java.lang.Object
org.crosswire.jsword.book.sword.state.AbstractOpenFileState
- All Implemented Interfaces:
- Closeable, OpenFileState
- Direct Known Subclasses:
- GenBookBackendState, RawBackendState, RawLDBackendState, ZVerseBackendState
public abstract class AbstractOpenFileState
- extends Object
- implements OpenFileState
- Author:
- DM Smith
- See Also:
The GNU Lesser General Public License for details.
Method Summary |
void |
close()
Allows us to decide whether to release the resources or continue using them |
long |
getLastAccess()
|
void |
setLastAccess(long lastAccess)
Sets the last access time |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lastAccess
private long lastAccess
AbstractOpenFileState
public AbstractOpenFileState()
close
public void close()
- Allows us to decide whether to release the resources or continue using them
- Specified by:
close
in interface Closeable
getLastAccess
public long getLastAccess()
- Specified by:
getLastAccess
in interface OpenFileState
- Returns:
- latest access before releasing back to the pool
setLastAccess
public void setLastAccess(long lastAccess)
- Description copied from interface:
OpenFileState
- Sets the last access time
- Specified by:
setLastAccess
in interface OpenFileState
- Parameters:
lastAccess
- last time the file state was accessed