#DOCUMENTATION by mawalch
class: ZipArchive
comment/format in: #extract:intoStream:
--- a/ZipArchive.st Tue May 30 20:31:12 2017 +0200
+++ b/ZipArchive.st Wed May 31 15:03:38 2017 +0200
@@ -4181,11 +4181,11 @@
!ZipArchive methodsFor:'reading - stream'!
-extract:fileName intoStream: aWriteStream
- "extract an entry indentified by filename into aWriteStream"
-
- self
- withPositionAndMemberFor:fileName
+extract:fileName intoStream:aWriteStream
+ "extract an entry identified by filename into aWriteStream"
+
+ self
+ withPositionAndMemberFor:fileName
do:[:zmemb :position |
|buffer rdSize compressionMethod nextBlockSize streamBufferSize myZipStream|
@@ -4193,7 +4193,7 @@
compressionMethod := zmemb compressionMethod.
rdSize := zmemb uncompressedSize.
- nextBlockSize := streamBufferSize := self class streamBufferSize.
+ nextBlockSize := streamBufferSize := self class streamBufferSize.
buffer := ByteArray new: streamBufferSize.
[
[rdSize > 0] whileTrue: [
@@ -4224,6 +4224,7 @@
]
"Modified: / 21-11-2010 / 11:56:51 / cg"
+ "Modified (format): / 31-05-2017 / 15:03:06 / mawalch"
!
readStreamFor:nameOfFileInArchive