Package org.compiere.model
Class ArchiveFileSystem
java.lang.Object
org.compiere.model.ArchiveFileSystem
- All Implemented Interfaces:
IArchiveStore
File system backed implementation of
IArchiveStore
- Author:
- juliana
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
deleteArchive
(MArchive archive, MStorageProvider prov) Delete stored archive contentvoid
flush
(MArchive archive, MStorageProvider prov) Flush buffer archive content to destination storageboolean
byte[]
loadLOBData
(MArchive archive, MStorageProvider prov) Load binary content of archiveloadLOBDataAsStream
(MArchive archive, MStorageProvider prov) Load binary content of archive as InputStreamprotected File
Parse XML data to get the file pathvoid
save
(MArchive archive, MStorageProvider prov, byte[] inflatedData) Save content of archivevoid
save
(MArchive archive, MStorageProvider prov, InputStream inputStream) Save content of archive from InputStream
-
Constructor Details
-
ArchiveFileSystem
public ArchiveFileSystem()
-
-
Method Details
-
parseXML
Parse XML data to get the file path- Parameters:
archivePathRoot
-data
- xml data- Returns:
- File object or null if not found
-
loadLOBData
Description copied from interface:IArchiveStore
Load binary content of archive- Specified by:
loadLOBData
in interfaceIArchiveStore
- Returns:
- byte[] content
-
loadLOBDataAsStream
Description copied from interface:IArchiveStore
Load binary content of archive as InputStream- Specified by:
loadLOBDataAsStream
in interfaceIArchiveStore
- Returns:
- InputStream content, or null if no data
-
save
Description copied from interface:IArchiveStore
Save content of archive- Specified by:
save
in interfaceIArchiveStore
inflatedData
- byte[] content of archive
-
save
Description copied from interface:IArchiveStore
Save content of archive from InputStream- Specified by:
save
in interfaceIArchiveStore
inputStream
- InputStream content of archive
-
deleteArchive
Description copied from interface:IArchiveStore
Delete stored archive content- Specified by:
deleteArchive
in interfaceIArchiveStore
- Returns:
- true if successfully deleted
-
isPendingFlush
public boolean isPendingFlush()- Specified by:
isPendingFlush
in interfaceIArchiveStore
- Returns:
- true if archive content is being buffered and pending flush to destination storage
-
flush
Description copied from interface:IArchiveStore
Flush buffer archive content to destination storage- Specified by:
flush
in interfaceIArchiveStore
-