Class FileBasedPhysicalStore
- java.lang.Object
-
- org.commonjava.storage.pathmapped.core.FileBasedPhysicalStore
-
- All Implemented Interfaces:
org.commonjava.storage.pathmapped.spi.PhysicalStore
public class FileBasedPhysicalStore extends Object implements org.commonjava.storage.pathmapped.spi.PhysicalStore
-
-
Constructor Summary
Constructors Constructor Description FileBasedPhysicalStore(File baseDir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandelete(org.commonjava.storage.pathmapped.spi.FileInfo fileInfo)booleanexists(String storageFile)org.commonjava.storage.pathmapped.spi.FileInfogetFileInfo(String fileSystem, String path)InputStreamgetInputStream(String storageFile)OutputStreamgetOutputStream(org.commonjava.storage.pathmapped.spi.FileInfo fileInfo)
-
-
-
Constructor Detail
-
FileBasedPhysicalStore
public FileBasedPhysicalStore(File baseDir)
-
-
Method Detail
-
getFileInfo
public org.commonjava.storage.pathmapped.spi.FileInfo getFileInfo(String fileSystem, String path)
- Specified by:
getFileInfoin interfaceorg.commonjava.storage.pathmapped.spi.PhysicalStore
-
getOutputStream
public OutputStream getOutputStream(org.commonjava.storage.pathmapped.spi.FileInfo fileInfo) throws IOException
- Specified by:
getOutputStreamin interfaceorg.commonjava.storage.pathmapped.spi.PhysicalStore- Throws:
IOException
-
getInputStream
public InputStream getInputStream(String storageFile) throws IOException
- Specified by:
getInputStreamin interfaceorg.commonjava.storage.pathmapped.spi.PhysicalStore- Throws:
IOException
-
delete
public boolean delete(org.commonjava.storage.pathmapped.spi.FileInfo fileInfo)
- Specified by:
deletein interfaceorg.commonjava.storage.pathmapped.spi.PhysicalStore
-
exists
public boolean exists(String storageFile)
- Specified by:
existsin interfaceorg.commonjava.storage.pathmapped.spi.PhysicalStore
-
-