String consoleEnc = System.getProperty("console.encoding", "Cp866");
BufferedInputStream is;
BufferedOutputStream dest;
FileOutputStream fos;
File nameForDirCreating;
ZipFile zipfile;
ZipEntry entry;
ZipFile zipfile_test = new ZipFile(filename, consoleEnc);
Enumeration e;
InputStream entryStream;
int BUFFER = 2048;
int count;
float countFiles = 0;
float countProcessedFiles = 0;
int countProgress;
byte data[];
FileOutputStream fosForXML;
OutputFormat of;
XMLSerializer serializer;
Element XMLelement = null;
Node XMLnode = null;
// Document (Xerces implementation only).
Document xmldoc = new DocumentImpl();
// Root element.
Element mainElement = xmldoc.createElement("mainElement");
Element rootFilesForDeleting = xmldoc.createElement("filesForDeleting");
Element rootDirsForDeleting = xmldoc.createElement("foldersForDeleting");
Element mainDir = xmldoc.createElement("mainDir");
SomeFunctionsForInstaller SomeFunctionsForInstaller = new SomeFunctionsForInstaller();
Map<Integer, String> tmpfileNamesForShortcuts = new HashMap();
ArrayList<Map> fileNamesForShortcuts = new ArrayList<Map>();
SomeFunctionsForInstaller SomeFunctionsForInstallerLocal=new SomeFunctionsForInstaller();
if (zipfile_test.getEncoding() == null) {
zipfile = new ZipFile(filename, consoleEnc);
} else {
zipfile = new ZipFile(filename, zipfile_test.getEncoding());
}
zipfile_test.close();
e = zipfile.getEntries();
while (e.hasMoreElements()) {
countFiles++;
entry = (ZipEntry) e.nextElement();