Class BasicFileStorage


  • public class BasicFileStorage
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      BasicFileStorage​(java.lang.String basePath)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void deleteFile​(java.lang.String containerName, java.lang.String storageId)  
      java.util.stream.Stream<java.lang.String> listStorageIdsByContainerName​(java.lang.String containerName)  
      java.io.InputStream readFile​(java.lang.String containerName, java.lang.String storageId)  
      java.lang.String writeFile​(java.lang.String containerName, java.lang.String objectName, java.io.InputStream inputStream, long size)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BasicFileStorage

        public BasicFileStorage​(java.lang.String basePath)
    • Method Detail

      • writeFile

        public java.lang.String writeFile​(java.lang.String containerName,
                                          java.lang.String objectName,
                                          java.io.InputStream inputStream,
                                          long size)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • readFile

        public java.io.InputStream readFile​(java.lang.String containerName,
                                            java.lang.String storageId)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • deleteFile

        public void deleteFile​(java.lang.String containerName,
                               java.lang.String storageId)
      • listStorageIdsByContainerName

        public java.util.stream.Stream<java.lang.String> listStorageIdsByContainerName​(java.lang.String containerName)
                                                                                throws java.io.IOException
        Throws:
        java.io.IOException