The gzip read/write stream classes -- are these presumed to be working??

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

The gzip read/write stream classes -- are these presumed to be working??

Dennis smith-4
I seem to be able to write a file -- e.g. using the example in the comment,
but using the similar example in the read-stream comment I get back an
empty string.

--
Dennis Smith                        [hidden email]
Cherniak Software Development Corporation       +1 905.771.7011
400-10 Commerce Valley Dr E                Fax: +1 905.771.6288
Thornhill, ON Canada L3T 7N7    http://www.CherniakSoftware.com

Reply | Threaded
Open this post in threaded view
|

RE: The gzip read/write stream classes -- are these presumed to be working??

McNeil, Andrew
Denis

the example in Class comment for GZipReadStream should read something
like

| input |
   (input := 'myfile.gz' asFilename readStream) binary.
   (GZipReadStream on: input) upToEnd.

contents is only implemented in InternalStream which just does a copy of
the stream, it doesn't decompress anything.

Regards
Andrew McNeil
-----Original Message-----
From: Dennis Smith [mailto:[hidden email]]
Sent: Saturday, 14 October 2006 10:31 PM
To: VWNC,
Subject: The gzip read/write stream classes -- are these presumed to be
working??

I seem to be able to write a file -- e.g. using the example in the
comment, but using the similar example in the read-stream comment I get
back an empty string.

--
Dennis Smith                        [hidden email]
Cherniak Software Development Corporation       +1 905.771.7011
400-10 Commerce Valley Dr E                Fax: +1 905.771.6288
Thornhill, ON Canada L3T 7N7    http://www.CherniakSoftware.com

Reply | Threaded
Open this post in threaded view
|

Re: The gzip read/write stream classes -- are these presumed to be working??

Dennis smith-4
OK thanks -- that works

McNeil, Andrew wrote:

> Denis
>
> the example in Class comment for GZipReadStream should read something
> like
>
> | input |
>    (input := 'myfile.gz' asFilename readStream) binary.
>    (GZipReadStream on: input) upToEnd.
>
> contents is only implemented in InternalStream which just does a copy of
> the stream, it doesn't decompress anything.
>
> Regards
> Andrew McNeil
> -----Original Message-----
> From: Dennis Smith [mailto:[hidden email]]
> Sent: Saturday, 14 October 2006 10:31 PM
> To: VWNC,
> Subject: The gzip read/write stream classes -- are these presumed to be
> working??
>
> I seem to be able to write a file -- e.g. using the example in the
> comment, but using the similar example in the read-stream comment I get
> back an empty string.
>
>  

--
Dennis Smith                        [hidden email]
Cherniak Software Development Corporation       +1 905.771.7011
400-10 Commerce Valley Dr E                Fax: +1 905.771.6288
Thornhill, ON Canada L3T 7N7    http://www.CherniakSoftware.com