Class FileBasedPhysicalStore

  • All Implemented Interfaces:
    org.commonjava.storage.pathmapped.spi.PhysicalStore

    public class FileBasedPhysicalStore
    extends Object
    implements org.commonjava.storage.pathmapped.spi.PhysicalStore
    • Constructor Detail

      • FileBasedPhysicalStore

        public FileBasedPhysicalStore​(File baseDir)
    • Method Detail

      • getFileInfo

        public org.commonjava.storage.pathmapped.spi.FileInfo getFileInfo​(String fileSystem,
                                                                          String path)
        Specified by:
        getFileInfo in interface org.commonjava.storage.pathmapped.spi.PhysicalStore
      • getOutputStream

        public OutputStream getOutputStream​(org.commonjava.storage.pathmapped.spi.FileInfo fileInfo)
                                     throws IOException
        Specified by:
        getOutputStream in interface org.commonjava.storage.pathmapped.spi.PhysicalStore
        Throws:
        IOException
      • getInputStream

        public InputStream getInputStream​(String storageFile)
                                   throws IOException
        Specified by:
        getInputStream in interface org.commonjava.storage.pathmapped.spi.PhysicalStore
        Throws:
        IOException
      • delete

        public boolean delete​(org.commonjava.storage.pathmapped.spi.FileInfo fileInfo)
        Specified by:
        delete in interface org.commonjava.storage.pathmapped.spi.PhysicalStore
      • exists

        public boolean exists​(String storageFile)
        Specified by:
        exists in interface org.commonjava.storage.pathmapped.spi.PhysicalStore