Deflater.setDictionary

Discussion in 'Java' started by Dr. Carsten Leue, Jan 12, 2004.

  1. *** post for FREE via your newsreader at post.newsfeed.com ***

    I would like to initialize the java.util.zip.Deflater object with a
    precalculated dictionary. The documentation is very sparse, it just tells to
    pass in a byte array, but nothing about the content of this array. When I
    use an arbitrary array I get an IllegalArgumentException. The documentation
    says that this is due to an invalid dictionary format. But what is the
    correct format?

    Best regards
    Carsten







    -----= Posted via Newsfeed.Com, Uncensored Usenet News =-----
    http://www.newsfeed.com - The #1 Newsgroup Service in the World!
    -----== 100,000 Groups! - 19 Servers! - Unlimited Download! =-----
    Dr. Carsten Leue, Jan 12, 2004
    #1
    1. Advertising

  2. Dr. Carsten Leue

    Chris Uppal Guest

    Dr. Carsten Leue wrote:

    > *** post for FREE via your newsreader at post.newsfeed.com ***


    *** NO! I WILL NOT! ***


    > I would like to initialize the java.util.zip.Deflater object with a
    > precalculated dictionary. The documentation is very sparse, it just tells
    > to pass in a byte array, but nothing about the content of this array.


    You may find the documentation for the underlying ZLib implementation more
    helpful -- or maybe not since it's still not ideally detailed. It's better
    than the JavaDoc for the Java wrapper classes, anyway.

    http://www.gzip.org/zlib/manual.html#deflateSetDictionary

    HTH (at least a little).

    -- chris
    Chris Uppal, Jan 12, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Parker Thompson

    Deflater and IBM JRE

    Parker Thompson, Jul 1, 2003, in forum: Java
    Replies:
    3
    Views:
    1,448
    Xavier Tarrago
    Jul 2, 2003
  2. NOBODY
    Replies:
    2
    Views:
    795
    Thomas Weidenfeller
    Oct 17, 2003
  3. Replies:
    1
    Views:
    4,953
  4. Shea Martin
    Replies:
    2
    Views:
    365
    Shea Martin
    Aug 17, 2005
  5. Lew
    Replies:
    3
    Views:
    441
    Arne Vajhøj
    Jan 8, 2011
Loading...

Share This Page