lisp - ZIP contents as a Gray stream? -
i'm writing cl library read ms excel(tm) spreadsheets called "xlmanip" (not ready prime time yet -- reads "xlsx" spreadsheets, works 80% use case of "i want operate on cell contents"... digress.)
one thing worries me when reading "xlsx" (zip archives in xml format) current zip handling library, common lisp zip, unpacks compressed contents (vector (unsigned-byte 8))
. large spreadsheet, that'll cause issue end user.
one alternative i've thought delayed loading -- let-over-lambda closure demand-loads worksheet when needed. however, that's delaying inevitable.
are there zip file cl libraries out there return gray stream zip component's contents opposed (potentially large) (vector (unsigned-byte 8))
?
edit: clarification
i'm looking zip component function returns stream, not 1 takes stream. functions take stream write zip component's contents directly file associated stream. i'd rather xlmanip reads stream directly if zip component (implicitly, virtually) file.
chipz can decompress zip stream. provides decompress functions give output stream , input stream decompress , returns output stream decompressed contents can read.
Comments
Post a Comment