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
  • 398,947
  • 96
  • 818
  • 769
JJin
  • 327
  • 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
  • 69,683
  • 7
  • 133
  • 150