Commit graph

369 commits

Author SHA1 Message Date
Mikhail Voitenko
2121ded9b5 #98945# write additional magic mimetype file 2002-04-29 13:31:07 +00:00
Mikhail Voitenko
ae33e1a9f7 #97903# now setPropertyValue returns a result 2002-04-11 13:29:37 +00:00
Mikhail Voitenko
7f4bd5e20c #97587# truncate the original file before streaming in to it 2002-02-27 14:51:57 +00:00
Mikhail Voitenko
03c0f5262a #97587# adopt to linux 2002-02-22 15:00:56 +00:00
Jens-Heiner Rechtien
bf1b6d34cc #65293#: include <string.h> 2002-02-21 13:32:09 +00:00
Mikhail Voitenko
5eb508fd19 #97587# stream file, do not copy 2002-02-19 16:05:30 +00:00
Martin Gallwey
d86d7fefa6 #95155# Merge bug-fixes back from branch 2002-01-29 14:32:28 +00:00
Martin Gallwey
562feddce1 #95155# use unbuffered stream access 2002-01-29 14:30:48 +00:00
Martin Gallwey
b2263f2346 #95155# Use unbuffered stream access 2002-01-29 14:27:45 +00:00
Martin Gallwey
cbf18c2059 #95155# some optimisations for unbuffered access 2002-01-29 14:26:12 +00:00
Martin Gallwey
a32bf091a4 #95155# fix unnecessary call to realloc 2002-01-28 17:11:53 +00:00
Martin Gallwey
d6f910f798 #94573# remove dummy property handling, as it is no longer necessary (KSO removed his code that required it) 2001-12-11 14:39:48 +00:00
Martin Gallwey
b8213b7f8a #94679# fix a crash if the package component is being used to create a new zip file from scratch 2001-12-06 11:07:08 +00:00
Martin Gallwey
90ddd03b58 #95155# support for unbuffered streams 2001-12-04 16:53:19 +00:00
Martin Gallwey
ecd83d3387 #95155# assert if we couldn't get a reader or writer 2001-12-04 16:52:40 +00:00
Martin Gallwey
b8954b7df9 #95155# add support for unbuffered streams 2001-12-04 16:45:30 +00:00
Rüdiger Timm
416d66d190 #65293# UNOUCRDEP are UNOUCRRDB set to applicat.rdb by default, see settings.mk 2001-11-29 12:57:04 +00:00
Martin Gallwey
d3b6ccb9e8 #94573# remove support for pack'n'go disk spanning 2001-11-29 12:49:35 +00:00
Rüdiger Timm
66658983fd #65293# UNOUCRDEP are UNOUCRRDB set to applicat.rdb by default, see settings.mk 2001-11-29 12:46:46 +00:00
Martin Gallwey
f75d5e500d #94573# remove support for disk spanning pack'n'go 2001-11-29 12:40:57 +00:00
Martin Gallwey
8b0f526823 #95040# fix service name/implementation name 2001-11-21 12:48:27 +00:00
Martin Gallwey
8938be3c3a #94679# initialise segment size 2001-11-15 20:36:18 +00:00
Martin Gallwey
1db81030d9 #94679# fix exception specification 2001-11-15 19:55:07 +00:00
Martin Gallwey
9f5f9dac37 #94679#, #92268# support XServiceInfo and encrypted data headers 2001-11-15 19:42:43 +00:00
Martin Gallwey
d13c7fc98e #94679# support XTypeProvider 2001-11-15 19:41:02 +00:00
Martin Gallwey
ef6a289acb #94679# support XTypeProvider and XServiceInfo 2001-11-15 19:39:25 +00:00
Martin Gallwey
f365bd6392 #94679# use new static method for obtaining implementation id 2001-11-15 19:36:27 +00:00
Martin Gallwey
11a5c72daf #94679#, #92268# support XTypeProvider, XServiceInfo and encrypted data headers 2001-11-15 19:34:48 +00:00
Martin Gallwey
21f49ac87f #94679# support XTypeProvider and XServiceInfo 2001-11-15 19:30:34 +00:00
Martin Gallwey
3da402de73 #94679# support XTypeProvider 2001-11-15 19:28:55 +00:00
Martin Gallwey
3269035ee8 #94679#, #92268# support XServiceInfo and XTypeProvider 2001-11-15 19:27:48 +00:00
Martin Gallwey
6ba3f3f82d #94679# use new static_ methods for writing component info 2001-11-15 19:26:26 +00:00
Martin Gallwey
00d348af11 #94679# support XServiceInfo and XTypeProvider 2001-11-15 19:25:26 +00:00
Martin Gallwey
c60ff1d790 #92268# support encrypted data headers 2001-11-15 19:23:28 +00:00
Martin Gallwey
eca7a187c8 #94679# move headers to source file 2001-11-15 19:22:44 +00:00
Martin Gallwey
4688dc29d5 #92268# Support encrypted data headers 2001-11-15 19:22:18 +00:00
Martin Gallwey
e40e075973 #94679#, #92268# support XTypeProvider and Encrypted data headers 2001-11-15 19:20:40 +00:00
Martin Gallwey
614bfb6cdd #94679# remove throw specification 2001-11-15 19:17:02 +00:00
Martin Gallwey
461ef9d3e6 #94679# remove throw specifications 2001-11-15 19:16:11 +00:00
Martin Gallwey
e68f41ef5b #94679# add header 2001-11-15 19:13:09 +00:00
Martin Gallwey
1e645e0ce8 #94679# add used headers 2001-11-15 19:12:15 +00:00
Martin Gallwey
7a343a2502 #94679# add necessary headers 2001-11-15 19:10:47 +00:00
Martin Gallwey
050e3f4676 #93994# don't try to read 0 bytes and then decrypt and inflate it! 2001-10-31 10:32:54 +00:00
Martin Gallwey
73da475667 #93877# don't use auto_ptr's anymore 2001-10-30 12:58:00 +00:00
Martin Gallwey
e633304552 #93877# derive ContentInfo from OWeakObject so we can use it in an ORef 2001-10-30 12:54:47 +00:00
Martin Gallwey
be612daef9 #92012# decode titles before passing them to the file UCP 2001-10-30 09:34:23 +00:00
Martin Gallwey
a076a3aea7 #93877# Use auto_ptrs to handle life-time of contents 2001-10-26 20:57:47 +00:00
Martin Gallwey
30f738512f 93877# use clear method instead of a temporary 2001-10-26 20:55:47 +00:00
Martin Gallwey
51276abc7f #93877# Call releaseUpwatdRef in destructor 2001-10-26 20:46:08 +00:00
Jens-Heiner Rechtien
51dc2be2be #92924#: exception specifications 2001-10-26 10:21:18 +00:00
Martin Gallwey
6296102913 #91604# also truncate when writing to non-removable media 2001-10-22 12:34:46 +00:00
Martin Gallwey
5495a8e91e #92925# the target of a transfer must be a directory...not a file! 2001-10-10 15:07:48 +00:00
Martin Gallwey
04c9953047 #90699# use 'check sum type' instead of MD5 2001-10-02 21:31:48 +00:00
Martin Gallwey
fd219ad9e5 #90699# Use 'ChecksumType' instead of MD5 2001-10-02 21:31:15 +00:00
Martin Gallwey
986207d203 #90699# use checksum type define instead of explicitly using MD5 2001-10-02 21:30:40 +00:00
Martin Gallwey
e223ac1766 #90699# new define for checksum type 2001-10-02 21:29:42 +00:00
Martin Gallwey
ad4cda2392 #92664# Use some methods from WeakImplHelper classes to implement XTypeProvider, to allow access to ZipPackageStreams from StarBasic 2001-10-02 21:29:08 +00:00
Martin Gallwey
b5733a80d5 #92664# Support XTypeProvider to allow access from Basic 2001-10-02 21:27:29 +00:00
Martin Gallwey
81b20b0471 #92664# remove unused header include 2001-10-02 21:23:35 +00:00
Martin Gallwey
0940f14edd #92664# remove unnecessary header files 2001-10-02 21:22:17 +00:00
Martin Gallwey
3b81b95a57 #92664# Support XTypeProvider to allow access for StarBasic 2001-10-02 21:16:04 +00:00
Martin Gallwey
fd683fae8f #92664# don't include unnecessary pure virtual functions or implementation Id anymore 2001-10-02 21:13:16 +00:00
Martin Gallwey
2077a16bbe #92664# Don't check the implementation Id of ZipPackageEntry any more 2001-10-02 21:12:05 +00:00
Martin Gallwey
844a0c1c09 #92664# Support new initialisation modes and XTypeProvider to allow access from StarBasic 2001-10-02 21:10:51 +00:00
Martin Gallwey
a9223df83e #90699# generate a digest on export using SHA1 2001-10-02 21:08:40 +00:00
Martin Gallwey
16ad1f8880 #90699# generate a digest when constructing a memory stream to compare against digest in manifest 2001-10-02 21:07:58 +00:00
Martin Gallwey
ee17b7754b #92549# throw IllegalArgument Exception for illegal seeks 2001-09-28 15:31:56 +00:00
Martin Gallwey
bc08738282 #92549# update XSeekable implementation to throw an exception if someone tries to seek past the end of the stream 2001-09-28 15:24:08 +00:00
Martin Gallwey
9eb6bc4af9 #92466# correctly parse deep directory names 2001-09-26 11:41:36 +00:00
Martin Gallwey
db128d3449 #92268# if a stream has its own encryption key use that one instead of the one from the ZipPackage 2001-09-24 17:27:53 +00:00
Martin Gallwey
d369109afa #92268# Allow EncryptionKeys to be set per stream 2001-09-24 17:25:30 +00:00
Martin Gallwey
db1557d445 #92268# Boolean flag to indicate if this stream has had an encryption key set at it 2001-09-24 17:23:40 +00:00
Martin Gallwey
97ea0e7f09 #89303# The encryption data is only created on demand 2001-09-19 14:43:48 +00:00
Martin Gallwey
34b409abbb #92225# Flush the output stream when finished writing 2001-09-18 11:53:16 +00:00
Martin Gallwey
ec52fd233a #89303# fix exception specification 2001-09-14 14:46:37 +00:00
Martin Gallwey
88f2fc4151 #89303# The correct flags to unline and un-optimise 2001-09-14 14:24:09 +00:00
Martin Gallwey
4e84579009 #89303# remove unnecessary inline statements/only fill EncryptionData ORef on demand 2001-09-14 14:23:03 +00:00
Martin Gallwey
0d7da6fda4 #89303# only fill the EncryptionData ORef on demand 2001-09-14 14:19:17 +00:00
Martin Gallwey
b4798f2ea1 #89303# use optimised hash map 2001-09-14 14:17:22 +00:00
Martin Gallwey
b45a26d39d #89303# Use new hash 2001-09-14 14:16:27 +00:00
Martin Gallwey
e5ce806ea4 #89303# many optimisations 2001-09-14 14:14:12 +00:00
Martin Gallwey
1ad713ebac #89303# optimisations 2001-09-14 14:10:38 +00:00
Martin Gallwey
67a0964af8 #89303# many optimisations 2001-09-14 14:07:38 +00:00
Martin Gallwey
5a2bfbf399 #89303# do not dump API zipentry struct 2001-09-14 14:06:25 +00:00
Martin Gallwey
a41413a9a9 #89303# vastly optimised readCEN function 2001-09-14 14:03:35 +00:00
Martin Gallwey
bcd6b5ee31 #89303# don't bother with extra data or comments as we don't use either 2001-09-14 14:01:22 +00:00
Martin Gallwey
380290c0db #89303# remove unnecessary using declarations 2001-09-14 13:59:40 +00:00
Martin Gallwey
1ec56e57e8 #89303# only fill the EncryptionData ORef on demand 2001-09-14 13:57:00 +00:00
Martin Gallwey
1818001cdb #89303# use local ZipEntry 2001-09-14 13:55:03 +00:00
Martin Gallwey
ff5a40c661 #89303# Small struct to allow me to avoid using Anys as much as possible 2001-09-14 13:33:38 +00:00
Martin Gallwey
16fa407bf7 #89303# inline memory stream class 2001-09-14 13:29:41 +00:00
Martin Gallwey
1e92e832a4 #91797# If we are doing a straight write (ie, not packed), we can just copy the temp file to the real file without doing a byte-by-byte write 2001-09-06 11:26:49 +00:00
Martin Gallwey
2d94d9948b #91797# remove reference to deleted class 2001-09-06 11:25:15 +00:00
Martin Gallwey
11b559c0b6 #65293# remove unused header include 2001-09-06 09:39:11 +00:00
Martin Gallwey
78d8bf70c7 #65283# not allowed to include memory.h - use string.h instead 2001-09-06 09:37:09 +00:00
Martin Gallwey
d80f6e0b79 #91797# remove unused object files 2001-09-06 08:42:31 +00:00
Martin Gallwey
10a98b81a9 #90699# Support for digest 2001-09-06 08:22:44 +00:00
Martin Gallwey
88b6b6e872 #90699# add new strings for MD5 import 2001-09-05 18:26:06 +00:00
Martin Gallwey
ae2ba0d8d9 #90699# import MD5 of unencrypted stream 2001-09-05 18:23:48 +00:00
Martin Gallwey
2b0c30410b #90699# Export MD5 of decrypted stream 2001-09-05 18:21:21 +00:00
Martin Gallwey
d09dbbaea6 #90699# add defines for MD5 export 2001-09-05 18:19:12 +00:00
Martin Gallwey
dab95c2c47 #90699# Export a digest of the unencrypted stream 2001-09-05 18:13:50 +00:00
Martin Gallwey
e9e01272e3 #91797# Move code back into ZipPackage from OutputThread, as we don't need a threaded solution any longer 2001-09-05 18:10:58 +00:00
Martin Gallwey
9e625bb09c #90699# export an MD5 of the unencrypted, compressed stream 2001-09-05 17:54:28 +00:00
Martin Gallwey
0dec214361 #91797# Use XFileStream for bigger than 20k 2001-09-05 17:50:48 +00:00
Martin Gallwey
1746feadee #91797# Finish XFileStream with an underlying XTempFile instead of an osl::File 2001-09-05 17:48:26 +00:00
Martin Gallwey
5405bc873e #91797# Remove unused functionality 2001-09-05 17:44:36 +00:00
Martin Gallwey
0d8c5e7653 #91797# remove unused classes/files 2001-09-05 17:42:04 +00:00
Martin Gallwey
17e516c755 #91844# hide the META-INF directory from upper layers 2001-09-03 12:58:24 +00:00
Martin Gallwey
e93a190262 #91769# reccomended change: InteractiveFileIOException to InteractiveAugmentedIOException 2001-08-31 09:01:28 +00:00
Martin Gallwey
c0aba12aab #91514# return code from getVolumeInformation is not useful, so check if we have valid attributes instead 2001-08-30 14:59:45 +00:00
Martin Gallwey
b54c50be69 #91604# truncate files if over-writing 2001-08-30 13:39:56 +00:00
Martin Gallwey
38192c9c27 #91474# do not explicitly export Directories 2001-08-30 12:45:19 +00:00
Martin Gallwey
a9f4db10c4 #91383# oops, remove the MTG_DEBUG define 2001-08-22 18:21:42 +00:00
Martin Gallwey
4c6d14718f #91383# clear the Content which holds onto a reference to the first disk segment so that we can unmount the disk correctly 2001-08-22 18:18:39 +00:00
Martin Gallwey
c7bc70ed97 #86708# handle variable spanning to hard drive and change suffixes to being numeric 2001-08-22 15:12:18 +00:00
Martin Gallwey
235529ee36 #86708# use only random pool for all calls to saveContents 2001-08-08 17:32:39 +00:00
Martin Gallwey
de8cb713b0 #86708#,#87673#,#88979# write the full zip file to a tempfile before over-writing, thus fixing 87673 and 88979. Also, some new code for pack'n'go (should work on windows now) 2001-08-08 17:29:56 +00:00
Martin Gallwey
a54919ae91 #86708# remove calls which are no longer necessary for pack'n'go 2001-08-08 17:24:46 +00:00
Martin Gallwey
7f3134674a #86708# optimise findEND function 2001-08-08 17:23:04 +00:00
Martin Gallwey
dfae4e9ef6 #86708# re-grab pointer everytime to make sure we don't use a stale pointer 2001-08-08 17:22:03 +00:00
Martin Gallwey
fd676f8c2f #86708# remove evil code that is thankfully no longer necessary 2001-08-08 17:21:21 +00:00
Martin Gallwey
4d650ad817 #87722# correctly handle raw streams 2001-08-02 12:01:04 +00:00
jp
07dc9e46c4 #90267#: remove old code of TF_.. defines 2001-07-30 08:48:59 +00:00
Martin Gallwey
e522c10e3d #89731# Ensure that the Content has given us a 'real' stream 2001-07-19 12:17:15 +00:00
Martin Gallwey
fefe4a7b2c #89838# get the pre-compiler to hide some debugging information from everyone else...also handle a bad URL in the initialize function 2001-07-18 15:54:37 +00:00
Jens-Heiner Rechtien
fce5a701b8 #65293#: never use memory.h, use string.h instead 2001-07-12 16:54:22 +00:00
Jens-Heiner Rechtien
7a23964399 #65293#: rURL -> rMountPath 2001-07-12 10:56:11 +00:00
Martin Gallwey
1157563ae8 #86708# changes for pack'n'go feature (incomplete) 2001-07-04 13:56:37 +00:00
Martin Gallwey
2d212fe048 #87667# The if encrypted then compress check should be done here 2001-06-22 10:48:03 +00:00
Martin Gallwey
258efc65a0 #87667# The if encrypted then compress check should be done when writing not here, as we don't know here if we have an encryption key or not 2001-06-22 10:46:49 +00:00
Martin Gallwey
3203cca098 #88228# improve exception handling 2001-06-15 14:26:10 +00:00
Martin Gallwey
a4b32bb8af #88338# Add some try catch blocks... 2001-06-15 14:25:10 +00:00
Martin Gallwey
e51a89eb29 #88256# If we have a potentially corrupt file, just assert and then keep going 2001-06-14 16:36:15 +00:00
Martin Gallwey
c4b00bf081 #87187# add two catch's to support new UCB error stuff 2001-06-12 10:24:24 +00:00
Rüdiger Timm
2060767eea #87576# changed for gcc 2001-06-05 14:14:23 +00:00
Martin Gallwey
2a78cea0e7 #87099# remember the exception specification 2001-06-05 09:20:42 +00:00
Martin Gallwey
7fa0c288d1 #87099# Make sure we compress all STORED streams that are supposed to be encrypted 2001-05-31 09:29:31 +00:00
Martin Gallwey
b93185adc3 #87099# Added ThreadedBuffer and OutputThread 2001-05-31 09:28:09 +00:00
Martin Gallwey
a9e3305015 #87099# Must calculate the size and CRC32 for STORED streams here as it can no longer be done in ZipOutputStream 2001-05-31 09:27:26 +00:00
Martin Gallwey
2ee7e4552b #87099# Remove unused code and only initialise the buffer when we need to 2001-05-31 09:25:58 +00:00
Martin Gallwey
fed8ec37d3 #87099# Use the new ThreadedBuffer class and let it do all the work 2001-05-31 09:24:50 +00:00
Martin Gallwey
4b1b42665e #87099# Since we can no longer jump around in the buffer, we will write EXT descriptors for deflated entries and calculate the CRC and size of stored entries elsewhere 2001-05-31 09:23:43 +00:00
Martin Gallwey
a4f45a88f7 #87099# Use offapi.rdb instead of applicat.rdb 2001-05-31 09:21:44 +00:00
Martin Gallwey
17f08c3195 #87099# Remove unused method 2001-05-31 08:48:20 +00:00
Martin Gallwey
ae7f43c18a #87099# Added updateStream method and change the 'using namespace' stuff 2001-05-31 08:47:40 +00:00
Martin Gallwey
35be97b4e7 #87099# OPtimise the stream operators 2001-05-31 08:46:36 +00:00
Martin Gallwey
4d46ad186c #87099# Optimise the stream operators 2001-05-31 08:46:05 +00:00
Martin Gallwey
ce28f432b5 #87256# Keep a copy of the ZipEntry struct, not a reference 2001-05-29 10:57:06 +00:00
Martin Gallwey
8a382d18a8 #87256# Neither of these classes should close the underlying stream 2001-05-28 11:52:33 +00:00