BPackageWriter: Add Recompress()
Allows rewriting an existing package file with a different compression.
This commit is contained in:
@@ -24,6 +24,7 @@ class BAbstractBufferedDataReader;
|
||||
class BErrorOutput;
|
||||
class BLowLevelPackageContentHandler;
|
||||
class BPackageContentHandler;
|
||||
class BPackageWriter;
|
||||
|
||||
|
||||
class BPackageReader {
|
||||
@@ -43,6 +44,9 @@ public:
|
||||
BAbstractBufferedDataReader* HeapReader() const;
|
||||
// Only valid as long as the reader lives.
|
||||
|
||||
private:
|
||||
friend class BPackageWriter;
|
||||
|
||||
private:
|
||||
PackageReaderImpl* fImpl;
|
||||
};
|
||||
|
||||
@@ -16,6 +16,9 @@ namespace BPackageKit {
|
||||
namespace BHPKG {
|
||||
|
||||
|
||||
class BPackageReader;
|
||||
|
||||
|
||||
namespace BPrivate {
|
||||
class PackageWriterImpl;
|
||||
}
|
||||
@@ -72,6 +75,9 @@ public:
|
||||
status_t AddEntry(const char* fileName, int fd = -1);
|
||||
status_t Finish();
|
||||
|
||||
status_t Recompress(BPackageReader* reader);
|
||||
// to be called after Init(); no Finish()
|
||||
|
||||
private:
|
||||
PackageWriterImpl* fImpl;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user