Commit graph

427 commits

Author SHA1 Message Date
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
Martin Gallwey
033a4d7e7e #86409# Change storage method for encrypted compressed streams pretending to be plain text 2001-05-17 15:17:06 +00:00
Martin Gallwey
48297e47c2 #86409# fix typos in encrypted data import 2001-05-17 12:03:42 +00:00
Martin Gallwey
0f928c494c #86409# Add parantheses to clarify when exceptions should be thrown 2001-05-16 15:23:48 +00:00
Martin Gallwey
b66f73d7d1 #86409# Allow EncryptionKey's of any length 2001-05-15 14:33:22 +00:00
Martin Gallwey
adaf24e004 #86409# Support 'HasEncryptedEntries property 2001-05-15 14:18:49 +00:00
Martin Gallwey
e8f99d4c4e readBytes is responsible for reallocing the calling stream 2001-05-15 12:05:28 +00:00
Martin Gallwey
5eadc19940 Remove unnecessary parameter in call to getRawStream 2001-05-15 12:04:04 +00:00
Martin Gallwey
0371b5cd9b Remove unnecessary parameter from getRawStream (rEntry should always be aEntry) 2001-05-15 12:03:04 +00:00
Martin Gallwey
26e0332d5a Support encryption of streams! 2001-05-08 13:04:49 +00:00
Martin Gallwey
776aa370d4 made getEncryptionKey inline 2001-05-08 13:04:03 +00:00
Martin Gallwey
b6eb650d3d Clean up inline methods 2001-05-08 13:02:21 +00:00
Martin Gallwey
c5dbb2c73b retrieve and use encryption data recieved from the manifest 2001-05-08 13:01:33 +00:00
Martin Gallwey
acd3280d7b Remove an unused method, no longer write EXT descriptors for compressed streams and encrypt streams if asked to 2001-05-08 12:59:39 +00:00
Martin Gallwey
cbde1894bd Remove unused 'aSequence' member 2001-05-08 12:58:22 +00:00
Martin Gallwey
53ddbecafe If we have an encrypted stream, decrypt it! (if we can!) 2001-05-08 12:57:41 +00:00
Martin Gallwey
9e15535240 Update manifest import to reflect new manifest.dtd 2001-05-08 12:56:22 +00:00
Martin Gallwey
885ef79bbd Change manifest import to reflect new manifest.dtd 2001-05-08 12:55:13 +00:00
Martin Gallwey
3e0be7d507 Change manifest export to reflect new manifest.dtd 2001-05-08 12:54:33 +00:00
Martin Gallwey
b4f335d1c0 Update new defines to reflect new manifest file structure 2001-05-08 12:53:48 +00:00
Martin Gallwey
2c341a1961 Encode unsigned byte streams, not signed byte streams 2001-05-08 12:52:52 +00:00
Martin Gallwey
37f5b913ed #86337# fix name setting 2001-05-02 17:11:27 +00:00
Martin Gallwey
344db257f5 fix manifest entry 2001-04-30 18:42:15 +00:00
Martin Gallwey
b0401a2302 Fix raw copying of streams 2001-04-30 17:22:56 +00:00
Martin Gallwey
0802bc6db5 set default to be compressed 2001-04-30 17:22:27 +00:00
Martin Gallwey
4fd8fd103e Fix import of mediatype and make the manifest.xml compressed 2001-04-30 17:21:41 +00:00
Martin Gallwey
7a61d7abe9 fix copying of raw streams 2001-04-30 17:19:09 +00:00
Martin Gallwey
c57f906170 Fix raw copying of streams + clean up constructor 2001-04-30 17:17:44 +00:00
Martin Gallwey
e243f497f8 Fix copying of raw streams 2001-04-30 17:16:55 +00:00
Martin Gallwey
fd22add0d9 #86409# initial import 2001-04-27 13:56:52 +00:00
Martin Gallwey
fa2de5099c #86409# Support encryption in package files + a couple of optimisations 2001-04-27 13:56:07 +00:00
Vladimir Glazounov
6ba1d5730b Corrected misspelling 2001-04-23 14:52:53 +00:00
Martin Gallwey
822705fec1 Make function conform to prior exception specification 2001-04-23 14:34:21 +00:00
Martin Gallwey
b3373bdeaa some misc. code clean ups and now use the new XManifestReader/XManifestWriter components 2001-04-19 13:16:31 +00:00
Martin Gallwey
b5cc630c38 moved from main inc directory 2001-04-19 13:15:53 +00:00
Martin Gallwey
4b6f310cd7 misc code clean ups 2001-04-19 13:13:40 +00:00
Martin Gallwey
2b7c5da331 Moved these headers from main inc directory 2001-04-19 13:12:53 +00:00
Martin Gallwey
c98f44a3b0 initial import 2001-04-19 13:10:03 +00:00
Martin Gallwey
6ce3967867 Initial import 2001-04-19 13:09:35 +00:00
Martin Gallwey
ccbe33dd6c fix service name 2001-03-26 09:33:35 +00:00
Martin Gallwey
0b92e4f099 fixed service name / implementation name confusion 2001-03-23 17:14:35 +00:00
Martin Gallwey
4324a64ad9 fixed service/component name confusion 2001-03-23 15:09:39 +00:00
Michael Brauer
ad86404833 #85420#: register component correctly 2001-03-22 07:20:00 +00:00
Martin Gallwey
ad086170b8 allow backwards compatibility to pre-626 builds with an #if SUPD>625 check around the component name 2001-03-19 11:36:40 +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
593af212be #84734# Only allocate aSequence for deflated streams, and free the memory used afterwards 2001-03-08 15:34:27 +00:00
Martin Gallwey
0de5e6986b removes support for embedded zipfiles, possibly forever 2001-03-08 11:22:54 +00:00
Martin Gallwey
39a5287615 removed support for embedded zip files, possibly forever 2001-03-08 11:22:40 +00:00
Martin Gallwey
6e0caeee8a #84734# Restrict the number of bytes read from a compressed stream when checking for zip file header to a 32k LZ77 window 2001-03-07 18:24:15 +00:00
Martin Gallwey
5d44dd508f re-organised support for time/date-stamping 2001-03-07 15:09:44 +00:00
Martin Gallwey
4eabfdbc6a #84570# in case of a corrupt zip file, clean up the memory and then pass the exception to the UCB 2001-03-07 15:06:55 +00:00
Martin Gallwey
a8f8b1cbe2 reset pointers to NULL to help debugging 2001-02-26 12:21:05 +00:00
Martin Gallwey
ce5fa3937f String handling optimisations 2001-02-07 09:51:26 +00:00
Martin Gallwey
1c7be225a3 Remove check for bizarre Solaris bug 2001-02-07 08:15:43 +00:00
Martin Gallwey
bfaa449c45 Allow the setting of the MediaType on the root folder 2001-02-07 08:13:57 +00:00
Kurt Zenker
05d49dc566 #83072# Compress changed to Compressed from 618 on... 2001-01-23 12:54:12 +00:00
Martin Gallwey
7585c013e8 Change name of property 'Compress' to 'Compressed' 2001-01-17 14:36:06 +00:00
Martin Gallwey
3507007cba Do not write data descriptors for STORED files because Jar doesn't like them 2001-01-17 12:42:26 +00:00
Martin Gallwey
a07c5767d1 This change allows the compression state of a saved stream to be changed. That is, if a stream in a saved Package is stored uncompressed, the user can specify that it should be stored compressed when that Package is next written to disk 2001-01-16 16:06:14 +00:00
Martin Gallwey
78716fb3a2 #82700# Real cause for bug 82700 was an implementation of XSeekable->getLength which changed the current position in the stream. 2001-01-11 15:58:36 +00:00
Martin Gallwey
899e254d90 #82700# I added a check to make sure that when the media type is set, that it has length > 0 2001-01-11 14:05:48 +00:00
Martin Gallwey
5943454c7f Oops....committed makefile of test application 2001-01-10 18:15:28 +00:00
Martin Gallwey
a217253676 Implemented a new XPropertySet to enable users to specify whether or not something is compressed. Also set a default compression level based on mime-type for new objects added to the package 2001-01-10 10:36:01 +00:00
Martin Gallwey
25eb58da9f removed non thread-safe statics 2000-12-20 11:36:39 +00:00
Martin Gallwey
7a03490d7b Added my name to the Contributors field of the header 2000-12-20 10:24:27 +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
4f0d6a6710 fix a second exception specification so that this time _it really does_ compile under Solaris (honest, guv) 2000-12-13 16:21:40 +00:00
Martin Gallwey
95ed8cbae6 fixed exception specification so it compiles under solaris 2000-12-13 16:18:33 +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
d166606dce #65293# fixed extra ()'s in throw statements before obo finds them and comes after me to kill me 2000-12-08 12:40:03 +00:00
Oliver Bolte
eba44fab90 #65293# syntax error 2000-12-08 11:37:08 +00:00
Oliver Bolte
56cc3066fd #65293# syntax error 2000-12-08 11:28:22 +00:00
Jens-Heiner Rechtien
de584eb4d4 #65293#: includes 2000-12-08 11:21:40 +00:00
Hans-Joachim Lankenau
ccb9441a7c #65293# syntax 2000-12-07 14:48:04 +00:00
Martin Gallwey
13c5235608 #81494# fixed the problem with opening empty directories in JAR 2000-12-07 10:04:07 +00:00
Oliver Bolte
ab0cb71af7 #65293# Parse error linux compiler throw() 2000-12-04 15:18:49 +00:00
Oliver Bolte
f6b5d036d1 #65293# Parse error linux throw() 2000-12-04 15:04:49 +00:00
Martin Gallwey
2e31fa2132 #80556# fix crash-causing typo 2000-12-04 13:52:27 +00:00
Martin Gallwey
2056f50ead #80556# improved exception handling 2000-12-04 10:30:09 +00:00
Martin Gallwey
27f0f98c4c #80556# fix moronic static_cast 2000-12-01 10:39:30 +00:00
Martin Gallwey
f2d26f84b4 #80556# fix compiler warnings 2000-12-01 09:50:49 +00:00
Mathias Bauer
5f0e2de745 #80466#: readBytes must realloc buffer 2000-11-30 12:47:49 +00:00
Martin Gallwey
e5341c0538 #80556# make setParent/insertByName behaviour more consistent 2000-11-29 13:09:05 +00:00
Martin Gallwey
2d5e27c5f1 #80556# correctly handle empty zips 2000-11-29 12:47:18 +00:00
Martin Gallwey
714bfc1e97 #80556# bug fixes 2000-11-29 04:19:35 +00:00
Martin Gallwey
07c2807484 #80556# bug fixes 2000-11-29 02:21:56 +00:00
Martin Gallwey
81c60a38c4 #80556# make it build 2000-11-28 15:49:34 +00:00
Oliver Bolte
65de56e98c #65293# throw() to throw for linux 2000-11-28 15:11:37 +00:00
Martin Gallwey
44d7d255be #80556 fix time modification dates 2000-11-28 12:13:29 +00:00
Martin Gallwey
0135f66c7e #80556# correctly handle new ZipPackageFolders 2000-11-28 11:07:00 +00:00
Martin Gallwey
fded13dff3 #80556# do not set default mime type 2000-11-28 10:09:15 +00:00
Martin Gallwey
785c6ffe45 #80556# bug fix 2000-11-28 10:02:31 +00:00
Martin Gallwey
09362c472e #80556# store pointer instead of reference... 2000-11-28 09:50:54 +00:00
Martin Gallwey
2c3402219d #80556# use supplied MultiServiceFactory 2000-11-28 09:12:00 +00:00
Martin Gallwey
fc65cfd517 #80556# added manifest import objects 2000-11-28 08:32:32 +00:00
Martin Gallwey
e85c7cec14 #80556# use manifest instead of zipfile comment to store mediatype 2000-11-27 15:57:09 +00:00
Martin Gallwey
49f70b05d8 #80556# Initial revision of manifest support + ignores leading slash in zip package folders 2000-11-27 15:55:07 +00:00
Martin Gallwey
a1988e5628 #80556# Ignore a leading slash in contained files... 2000-11-27 15:10:30 +00:00
Martin Gallwey
82eab5cec6 #80556# 2000-11-27 11:28:50 +00:00
Martin Gallwey
609b54bfed #80556# optimisation for root folder request... 2000-11-24 13:03:13 +00:00
Martin Gallwey
f0f2352275 #80556# Fixed exported C functions to allow correct instantiation 2000-11-24 10:17:09 +00:00
Martin Gallwey
721d767bce #80556# removed .* UNO dumping...fixes dependancies and all objects are no longer built each time 2000-11-24 10:16:13 +00:00
Martin Gallwey
b28e187829 #80556# now builds under Solaris correctly 2000-11-24 09:34:27 +00:00
Martin Gallwey
01fefe870a #80556# Implemented support for Zipfiles contained within zip files. These will appear as folders with the name set to the name of the zipfile. 2000-11-23 13:15:52 +00:00
Martin Gallwey
2f5de08723 #80556# Work around for flaw in XOutputStream (not being able to specify how much to write with the writeBytes method)...no longer write lots and lots of white space 2000-11-22 15:55:27 +00:00
Oliver Bolte
880d0f1508 throw changes for linux compiler 2000-11-22 13:57:44 +00:00
Martin Gallwey
9b6d1c76e7 Implemented XSeekable 2000-11-21 16:57:07 +00:00
Martin Gallwey
9dd0bf290d No longer use TOOLSLIB 2000-11-21 11:08:47 +00:00
Martin Gallwey
40ed918b37 Removed reliance on the tools/debug stuff 2000-11-21 11:07:21 +00:00
Martin Gallwey
00d5aa5467 Make it construct a dll instead of an app 2000-11-21 09:49:09 +00:00
Martin Gallwey
86e688bb73 Re-added, with correct copyright notice 2000-11-21 09:43:06 +00:00
Martin Gallwey
aa4b887424 New revision, with correct copyright header 2000-11-21 09:41:57 +00:00
Martin Gallwey
ad0ce5f932 *** empty log message *** 2000-11-21 09:41:00 +00:00
Martin Gallwey
a51bfa09c1 *** empty log message *** 2000-11-21 09:12:15 +00:00
Martin Gallwey
3e02195962 Deleted these due to lack of copyright notice. 2000-11-21 09:11:14 +00:00
Martin Gallwey
fbcd68a4c4 Draft 2. More complete, less buggy but still not fully functional.. 2000-11-16 21:51:27 +00:00
Martin Gallwey
f987a8b5e9 Fixed some problems with the buffering 2000-11-16 21:50:51 +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
f39fff0b3d Initial revision. This version is at best 50% functional, and contains
many gaping holes, bugs and half-implemented services, and is only meant
as a "preview" for Kai :)
2000-11-16 10:54:40 +00:00
Martin Gallwey
db4e8a77ce Initial Revision :D 2000-11-13 12:38:03 +00:00