org.crosswire.jsword.book.sword.state

## Interface OpenFileState

- All Superinterfaces:
    AutoCloseable, 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

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `BookMetaData` | `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

          BookMetaData 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