Class BasicFileStorage
- java.lang.Object
-
- fr.gouv.vitam.storage.offers.tape.cas.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)
-
-
-
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
-
-