Interface FileStorage

  • All Implemented Interfaces:

    
    public interface FileStorage
    
                        

    A storage for files, like a local directory or a remote server.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Boolean exists(String path) Return whether the given path exists or not.
      abstract InputStream read(String path) Read the file at path.
      abstract Unit write(String path, InputStream inputStream) Write the data from inputStream to the file at path.
      abstract Boolean delete(String path) Delete the file at the given path and return whether the operation was successful.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait