ZipArchive.st
branchjv
changeset 3980 684738628cf4
parent 3853 a7a4481d6851
parent 3979 0dc60bd4deac
child 4014 195df53729d3
equal deleted inserted replaced
3976:65cb26adfc9b 3980:684738628cf4
  3229 setArchiveStartPosition: aStartposition endPosition: anEndPosition
  3229 setArchiveStartPosition: aStartposition endPosition: anEndPosition
  3230     startOfArchive := aStartposition.
  3230     startOfArchive := aStartposition.
  3231     endOfArchive   := anEndPosition.
  3231     endOfArchive   := anEndPosition.
  3232 !
  3232 !
  3233 
  3233 
       
  3234 signatureInformation
       
  3235     "for compatibility with SignedZipArchive"
       
  3236     
       
  3237     ^ nil
       
  3238 !
       
  3239 
  3234 size
  3240 size
  3235     ^self fileSize
  3241     ^self fileSize
  3236 !
  3242 !
  3237 
  3243 
  3238 zipMembersByName
  3244 zipMembersByName
  3992         ].
  3998         ].
  3993 
  3999 
  3994     ^ false.
  4000     ^ false.
  3995 ! !
  4001 ! !
  3996 
  4002 
       
  4003 
  3997 !ZipArchive methodsFor:'reading'!
  4004 !ZipArchive methodsFor:'reading'!
  3998 
  4005 
  3999 extract:fileName
  4006 extract:fileName
  4000     "extract an entry identified by fileName as a byteArray;
  4007     "extract an entry identified by fileName as a byteArray;
  4001      nil on errors"
  4008      nil on errors"
  4100     dataStart := self dataStartOf:zmemb.
  4107     dataStart := self dataStartOf:zmemb.
  4101     aBlock value:zmemb value:dataStart.
  4108     aBlock value:zmemb value:dataStart.
  4102 
  4109 
  4103     "Created: / 21-11-2010 / 11:51:41 / cg"
  4110     "Created: / 21-11-2010 / 11:51:41 / cg"
  4104 ! !
  4111 ! !
       
  4112 
  4105 
  4113 
  4106 !ZipArchive methodsFor:'reading - stream'!
  4114 !ZipArchive methodsFor:'reading - stream'!
  4107 
  4115 
  4108 extract:fileName intoStream: aWriteStream
  4116 extract:fileName intoStream: aWriteStream
  4109     "extract an entry indentified by filename into aWriteStream"
  4117     "extract an entry indentified by filename into aWriteStream"