Interface FileStore

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
ImageTileDiskCache

public interface FileStore
extends Closeable
An interface for providing read access to files.
Since:
3.2.0
Author:
Joel Uckelman
  • Method Summary

    Modifier and Type Method Description
    void close()
    Closes the store.
    boolean contains​(String path)
    Queries whether a file exists in the store.
    List<String> getFiles()
    Gets the list of files in the store.
    List<String> getFiles​(String root)
    Gets the list of files under a given directory of the store.
    InputStream getInputStream​(String path)
    Gets an InputStream to read from the given file.
    long getMTime​(String path)
    Gets the modification time of a file in the store, in milliseconds since the epoch.
    long getSize​(String path)
    Gets the size of a file in the store, in bytes.
    boolean isClosed()
    Checks whether the store is closed.