Commit Graph

47 Commits

Author SHA1 Message Date
Matúš Kukan
43eca2d9f8 package: Create memory buffer only when we need it - if we use parallelism
Otherwise write directly to the resulting zip file.

Change-Id: I75097969f0cccf0b45da591c71221e5ae18668cb
2014-12-14 00:21:18 +01:00
Matúš Kukan
7088166a67 Simplify input parameters to just take the sequence
Change-Id: Ic2538ca8b0f7261064e1dfbf3884dd452003c797
2014-11-17 10:49:23 +01:00
Matúš Kukan
fbf714b456 package: Finally implement parallel zip entries deflating
For that:
1, create ZipPackageStream::successfullyWritten to be called after
the content is written
2, Do not take mutex when reading from WrapStreamForShare - threads should
be using different streams anyway, but there is only one common mutex. :-/

Change-Id: I90303e49206b19454dd4141e24cc8be29c433045
2014-11-17 10:49:23 +01:00
Matúš Kukan
db5552631b package: Call writeLOC always after putNextEntry explicitly
Preparation step to parallel deflating.
Rename putNextEntry to setEntry and make it a static function.
We need to call setEntry before starting thread but writeLOC after.

Change-Id: I99a9ffa7dc4c18b47c621847b48bf8469bfb789a
2014-11-17 10:49:22 +01:00
Matúš Kukan
30f80f12fb package: Do not use hacky bit 1<<4 in ZipEntry::nFlag
Change-Id: I504f5c0c9aa9b655ffb53d9820a33677dad6aa08
2014-11-17 10:49:22 +01:00
Matúš Kukan
3e3b8483d7 package: Use memory stream for compressing zip entries
Change-Id: Ibf81dc3cd8a9a9da3dfd6ee6e587a522c4d56a44
2014-11-17 10:49:21 +01:00
Matúš Kukan
2d92a84a6a package: Move most ZipOutputEntry's methods back to ZipOutputStream
We want to use ZipOutputEntry only for deflating (and maybe rename it).
ca13a9377e4a36436e4c82bb33648d0f3b6db6f5 was not a good idea because the
data still needs to be written sequentially anyway. Otherwise it's hard
to get offset positions of individual entries right.

Since this commit rawCloseEntry needs to be called always; also when we
use write&closeEntry because we don't call writeEXT in closeEntry
anymore.
Need to rename and add comments later.

Change-Id: I03bd48ca6e108e6253a77a137746165909ca3c3d
2014-11-17 10:49:20 +01:00
Matúš Kukan
3a8bddc18e package: Add ZipOutputEntry to isolate deflating of streams.
Preparation commit for deflating streams in parallel.
We still use the same single XOutputStream (ByteChucker :-) for
sequential writing but this can now be changed more easily.

Change-Id: Idf26cc2187461660e31ac2e12c4708e761596fb2
2014-10-23 14:30:30 +02:00
Matúš Kukan
ae0756d826 ZipOutputStream: No need to explicitly set default values
Change-Id: Ia3a20e0692e658d847e1b825fc97e32ac8a1854b
2014-10-10 13:50:04 +02:00
Matúš Kukan
04ebf43708 package: ZipOutputStream: prefix members
Change-Id: I9cc21ba87484560ec0db5424800dd67f80e00540
2014-10-10 13:50:03 +02:00
Noel Grandin
5df6dcf747 package: sal_Bool->bool
Change-Id: I05dd5070d0618ef7539b26c7edcaf01b0a84732c
2014-04-22 09:53:14 +02:00
Thomas Arnhold
d75f773f62 fixincludeguards.sh: package
Change-Id: Ia66d825baad3315c34bd579dc804f607bc6be30b
2014-04-19 11:10:11 +02:00
Luboš Luňák
1946794ae0 mass removal of rtl:: prefixes for O(U)String*
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk
have kept them, in order not to break external API (the automatic using declaration
is LO-internal).

Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-07 14:23:11 +02:00
Noel Grandin
1dedb15b17 fdo#46808, Adapt xml::crypto::SEInitializer UNO service to new style
Also create an NSSInitializer service IDL and split it's interfaces
out from SEInitializer.
It looks like this was the intention all along, but someone
took a shortcut.

Change-Id: I53ac1cb5d38b78b6718fe22c9666eae1f194a3b7
2012-11-05 16:43:14 +01:00
Michael Meeks
0ffc81ffdb re-base on ALv2 code. 2012-06-22 18:32:47 +01:00
Matúš Kukan
d0c301bba0 convert package to gbuild 2011-08-26 14:33:51 +02:00
Norbert Thiebaud
0d4720d1e1 undo anything not wizard related in the previous merge-commit 2011-08-21 18:12:16 -05:00
Jan Holesovsky
0e56df30f1 Namespace ZipUtils for the Inflater / Deflater classes. 2011-03-29 14:46:38 +02:00
Caolán McNamara
b77940e5af add modelines to .hxx files as well 2010-10-28 15:48:02 +01:00
Norbert Thiebaud
d3d553e1ef merge vosremoval-reference.diff 2010-10-25 19:55:29 -05:00
Petr Mladek
d41279d586 more removed include guards using fixguard.py 2010-10-05 18:08:01 +02:00
Jens-Heiner Rechtien
36de66bdf0 changefileheader2: #i109125#: change source file copyright notice from Sun Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision) 2010-02-12 15:01:35 +01:00
Rüdiger Timm
ef13b5303d INTEGRATION: CWS fwk88 (1.24.8); FILE MERGED
2008/05/27 15:57:23 mav 1.24.8.1: #i86348# integrate the patch
2008-06-20 06:16:58 +00:00
Rüdiger Timm
f2f29fa2ef INTEGRATION: CWS changefileheader (1.23.98); FILE MERGED
2008/04/01 15:22:20 thb 1.23.98.3: #i85898# Stripping all external header guards
2008/04/01 12:32:11 thb 1.23.98.2: #i85898# Stripping all external header guards
2008/03/31 16:19:05 rt 1.23.98.1: #i87441# Change license header to LPGL v3.
2008-04-10 15:27:03 +00:00
Rüdiger Timm
e024fa382a INTEGRATION: CWS ooo19126 (1.22.216); FILE MERGED
2005/09/05 18:49:01 rt 1.22.216.1: #i54170# Change license header: remove SISSL
2005-09-08 14:59:00 +00:00
Martin Gallwey
2967ab9c4b #94573# remove support for disk spanning 2001-11-29 12:37:22 +00:00
Martin Gallwey
1c318efd3d #94679# remove unncessary headers 2001-11-15 18:57:26 +00:00
Martin Gallwey
ef4c5d1b71 #90699# remove unused methods and members and add a new member to track how much we've digested 2001-10-02 20:59:46 +00:00
Martin Gallwey
447eceb846 #89303# Use local ZipEntry struct 2001-09-14 13:47:23 +00:00
Martin Gallwey
283159fc50 #91797# remove references to a deleted class 2001-09-06 11:10:27 +00:00
Martin Gallwey
b9f0b56010 #90699# Add support for storing an MD5 digest of the unencrypted stream 2001-09-05 18:33:51 +00:00
Martin Gallwey
1157563ae8 #86708# changes for pack'n'go feature (incomplete) 2001-07-04 13:56:37 +00:00
Martin Gallwey
f23c0fc3c1 #87099# remove unused member and add offset and length parameters to 'rawWrite' 2001-05-31 08:38:31 +00:00
Martin Gallwey
1c7e38046d remove unused methods and add nCurrentDataBegin member to track uncompressed stream size 2001-05-08 12:49:54 +00:00
Martin Gallwey
fa2de5099c #86409# Support encryption in package files + a couple of optimisations 2001-04-27 13:56:07 +00:00
Martin Gallwey
5d31fa34f1 Cleaned up the header files and inc directory 2001-04-19 13:11:06 +00:00
Martin Gallwey
19e677a2e8 comply with MI's required change for package->packages, as package is a reserved word in Java 2001-03-16 16:11:42 +00:00
Martin Gallwey
5d44dd508f re-organised support for time/date-stamping 2001-03-07 15:09:44 +00:00
jp
c25ef3087e remove stl/ from the inlcude statement 2001-02-05 08:24:26 +00:00
Martin Gallwey
8d831711c6 many optimisations and memory leaks due to circular references fixed! An altogether amazing commit...tell your friends 2000-12-19 20:55:41 +00:00
Martin Gallwey
4b11504f4a This rather enormous commit has the following features:
1. Fixed three different memory leaks, one of them quite serious
2. Considerably streamlined the ZipPackageBuffer class - large performance
   increase, also streamlined EntryInputClass in the same way...
3. Correctly saves embedded zip files as embedded zip files instead of
   directories
4. Supports the copying of raw streams instead of de-compressing/re-
   compressing unnecessarily.

Marty
2000-12-13 16:00:47 +00:00
Martin Gallwey
2056f50ead #80556# improved exception handling 2000-12-04 10:30:09 +00:00
Martin Gallwey
785c6ffe45 #80556# bug fix 2000-11-28 10:02:31 +00:00
Martin Gallwey
b28e187829 #80556# now builds under Solaris correctly 2000-11-24 09:34:27 +00:00
Martin Gallwey
eaf3ab8ce4 Removed usage of the TOOLSLIB stuff for debugging and file timestamping 2000-11-21 11:07:58 +00:00
Martin Gallwey
05ac3fe285 Added 50% functional generic package implementation and added support
for un-deflated streams to EntryInputStream. This will require further
work RSN.
2000-11-16 10:55:52 +00:00
Martin Gallwey
db4e8a77ce Initial Revision :D 2000-11-13 12:38:03 +00:00