0

I'm new to Java and trying to understand how dictionary in compression works.

public void setDictionary(byte[] b, int off, int len)

Can Anyone give me an example of how to use this method?

skaffman
  • 390,936
  • 96
  • 800
  • 764
JJin
  • 307
  • 4
  • 14

1 Answers1

1

The "dictionary" you mentioned is not specific to Java itself, but is part of the DEFLATE compression algorithm. You can find a lot of references on the Internet describing the algorithm; Wikipedia is a good starting point.

casablanca
  • 68,094
  • 7
  • 131
  • 148