Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Deflater and IBM JRE

Reply
Thread Tools

Deflater and IBM JRE

 
 
Parker Thompson
Guest
Posts: n/a
 
      07-01-2003
Hello,

I am having a bizarre problem that I'm hoping someone has an answer for.

I have been developing using the Sun JRE, but recently switched to the IBM
JRE for performance reasons. Unfortunately, there is something that
causes the java.util.zip.Deflater class to throw an exception in
Deflater.reset() consistantly using the latter setup.

It probably does not matter, but in this case Deflater is being called by
GZIPOutputStream, and throws the exception each time it is called.

Thanks for any help you can provide,

pt.

 
Reply With Quote
 
 
 
 
Parker Thompson
Guest
Posts: n/a
 
      07-01-2003
FYI,

This problem occurs because of an implementation difference between sun
and ibm's GZIPOutputStream classes. IBM (looks like for performance
reasons) calls the deflater's end method as part of
GZIPOutputStream.finish().

In effect, this means you cannot write multiple compressed records to a
single stream without doing some mojo on the side to make it all work.

IBM, if you're listening, this is dumb. It might be acceptable if the
classe's write methods were protected (and finish, which calls them, could
be overridden), but as-is this makes this class inflexible, and in my case
unusable.

pt.

In our last episode Parker Thompson exclaimed:

:Hello,
:
:I am having a bizarre problem that I'm hoping someone has an answer for.
:
:I have been developing using the Sun JRE, but recently switched to the IBM
:JRE for performance reasons. Unfortunately, there is something that
:causes the java.util.zip.Deflater class to throw an exception in
eflater.reset() consistantly using the latter setup.
:
:It probably does not matter, but in this case Deflater is being called by
:GZIPOutputStream, and throws the exception each time it is called.
:
:Thanks for any help you can provide,
:
t.
:
:

 
Reply With Quote
 
 
 
 
Harald Hein
Guest
Posts: n/a
 
      07-01-2003
"Parker Thompson" wrote:

> It probably does not matter, but in this case Deflater is being
> called by GZIPOutputStream, and throws the exception each time it
> is called.


Please come back when you are willing to show us the exception and the
code causing it.

HH
 
Reply With Quote
 
Xavier Tarrago
Guest
Posts: n/a
 
      07-02-2003
Hi,
I am sorry, but I have no answer to your question. But I have been looking
for the IBM JDK and could not find it. Is it free, and if so, where could I
find it?
Thank you in advance,
Xavier Tarrago

"Parker Thompson" <(E-Mail Removed)> a écrit dans le message news:
Pine.A41.4.44.0307010928340.81962-10...washington.edu...
> Hello,
>
> I am having a bizarre problem that I'm hoping someone has an answer for.
>
> I have been developing using the Sun JRE, but recently switched to the IBM
> JRE for performance reasons. Unfortunately, there is something that
> causes the java.util.zip.Deflater class to throw an exception in
> Deflater.reset() consistantly using the latter setup.
>
> It probably does not matter, but in this case Deflater is being called by
> GZIPOutputStream, and throws the exception each time it is called.
>
> Thanks for any help you can provide,
>
> pt.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Diff. the JRE INSIDE the jdk folder and JRE OUTSIDE the JDK folder? Jochen Brenzlinger Java 5 09-02-2011 08:48 PM
Multiple Deflater Objecters on a file Shea Martin Java 2 08-17-2005 02:37 AM
Compressing a string using Deflater dave@yamoo.com Java 1 05-04-2005 02:39 PM
Deflater.setDictionary Dr. Carsten Leue Java 1 01-12-2004 04:58 PM
deflater/inflater and dictionnary for huffman NOBODY Java 2 10-17-2003 08:56 AM



Advertisments