org.crosswire.jsword.book.sword.state
Interface OpenFileState

All Superinterfaces:
Closeable
All Known Implementing Classes:
AbstractOpenFileState, GenBookBackendState, RawBackendState, RawFileBackendState, RawLDBackendState, ZLDBackendState, ZVerseBackendState

public interface OpenFileState
extends Closeable

Marker interface for objects holding open files that should be freed up upon finishing

Author:
DM Smith
See Also:
The GNU Lesser General Public License for details.

Method Summary
 SwordBookMetaData getBookMetaData()
           
 long getLastAccess()
           
 void releaseResources()
           
 void setLastAccess(long lastAccess)
          Sets the last access time
 
Methods inherited from interface java.io.Closeable
close
 

Method Detail

getBookMetaData

SwordBookMetaData getBookMetaData()

releaseResources

void releaseResources()

getLastAccess

long getLastAccess()
Returns:
latest access before releasing back to the pool

setLastAccess

void setLastAccess(long lastAccess)
Sets the last access time

Parameters:
lastAccess - the time at which this instance was last accessed

Copyright ยจ 2003-2015