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 TypeMethodDescriptionbooleandeleteArchive(MArchive archive, MStorageProvider prov) Delete stored archive contentvoidflush(MArchive archive, MStorageProvider prov) Flush buffer archive content to destination storagebooleanbyte[]loadLOBData(MArchive archive, MStorageProvider prov) Load binary content of archiveloadLOBDataAsStream(MArchive archive, MStorageProvider prov) Load binary content of archive as InputStreamprotected FileParse XML data to get the file pathvoidsave(MArchive archive, MStorageProvider prov, byte[] inflatedData) Save content of archivevoidsave(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:IArchiveStoreLoad binary content of archive- Specified by:
loadLOBDatain interfaceIArchiveStore- Returns:
- byte[] content
-
loadLOBDataAsStream
Description copied from interface:IArchiveStoreLoad binary content of archive as InputStream- Specified by:
loadLOBDataAsStreamin interfaceIArchiveStore- Returns:
- InputStream content, or null if no data
-
save
Description copied from interface:IArchiveStoreSave content of archive- Specified by:
savein interfaceIArchiveStoreinflatedData- byte[] content of archive
-
save
Description copied from interface:IArchiveStoreSave content of archive from InputStream- Specified by:
savein interfaceIArchiveStoreinputStream- InputStream content of archive
-
deleteArchive
Description copied from interface:IArchiveStoreDelete stored archive content- Specified by:
deleteArchivein interfaceIArchiveStore- Returns:
- true if successfully deleted
-
isPendingFlush
public boolean isPendingFlush()- Specified by:
isPendingFlushin interfaceIArchiveStore- Returns:
- true if archive content is being buffered and pending flush to destination storage
-
flush
Description copied from interface:IArchiveStoreFlush buffer archive content to destination storage- Specified by:
flushin interfaceIArchiveStore
-