Top Description Inners Fields Constructors Methods
org.brotli.dec

pack-priv final Class Dictionary

extends Object
Class Inheritance

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.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
Dictionary.DataHolder0

"Initialization-on-demand holder idiom" implementation.

private static class
private static class

Field Summary

Modifier and TypeField and Description
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int[]
pack-priv static final int[]

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static byte[]
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

MAX_TRANSFORMED_WORD_LENGTHback to summary
pack-priv static final int MAX_TRANSFORMED_WORD_LENGTH
MAX_WORD_LENGTHback to summary
pack-priv static final int MAX_WORD_LENGTH
MIN_WORD_LENGTHback to summary
pack-priv static final int MIN_WORD_LENGTH
OFFSETS_BY_LENGTHback to summary
pack-priv static final int[] OFFSETS_BY_LENGTH
SIZE_BITS_BY_LENGTHback to summary
pack-priv static final int[] SIZE_BITS_BY_LENGTH

Constructor Detail

Dictionaryback to summary
pack-priv Dictionary()

Method Detail

getDataback to summary
pack-priv static byte[] getData()
org.brotli.dec back to summary

private Class Dictionary.DataHolder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final byte[]

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DATAback to summary
pack-priv static final byte[] DATA

Constructor Detail

DataHolderback to summary
private DataHolder()
org.brotli.dec back to summary

private Class Dictionary.DataHolder0

extends Object
Class Inheritance

"Initialization-on-demand holder idiom" implementation.

This static class definition is not initialized until the JVM determines that it must be executed (when the static method getData() is invoked).

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DataHolder0back to summary
private DataHolder0()

Method Detail

getDataback to summary
pack-priv static String getData()
org.brotli.dec back to summary

private Class Dictionary.DataHolder1

extends Object
Class Inheritance

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DataHolder1back to summary
private DataHolder1()

Method Detail

getDataback to summary
pack-priv static String getData()
org.brotli.dec back to summary

private Class Dictionary.DataHolder2

extends Object
Class Inheritance

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DataHolder2back to summary
private DataHolder2()

Method Detail

getDataback to summary
pack-priv static String getData()