Package net.sourceforge.plantuml.brotli
Class Dictionary
java.lang.Object
net.sourceforge.plantuml.brotli.Dictionary
Collection of static dictionary words.
Dictionary content is loaded from binary resource when getData()
is
executed for the first time. Consequently, it saves memory and CPU in case
dictionary is not required.
One possible drawback is that multiple threads that need dictionary data may
be blocked (only once in each classworld). To avoid this, it is enough to
call getData()
proactively.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ByteBuffer
getData()
static void
setData
(ByteBuffer data)
-
Constructor Details
-
Dictionary
public Dictionary()
-
-
Method Details
-
setData
-
getData
-