Legacy jar reassembly, base of proper custom jar support
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
#include "JlCompress.h"
|
||||
#include <QDebug>
|
||||
|
||||
static bool copyData(QIODevice &inFile, QIODevice &outFile)
|
||||
bool JlCompress::copyData(QIODevice &inFile, QIODevice &outFile)
|
||||
{
|
||||
while (!inFile.atEnd()) {
|
||||
char buf[4096];
|
||||
|
@ -51,6 +51,8 @@ private:
|
||||
static bool removeFile(QStringList listFile);
|
||||
|
||||
public:
|
||||
/// copy data from inFile to outFile
|
||||
static bool copyData(QIODevice &inFile, QIODevice &outFile);
|
||||
/// Compress a single file.
|
||||
/**
|
||||
\param fileCompressed The name of the archive.
|
||||
|
Reference in New Issue
Block a user