Note, when extending this class, the name (getName()) is
written into the index. In order for the segment to be read, the
name must resolve to your implementation via forName(String).
This method uses Java's
Service Provider Interface (SPI) to resolve codec names.

If you implement your own codec, make sure that it has a no-arg constructor
so SPI can load it.

Constructor Detail

Codec

The provided name will be written into the index segment: in order to
for the segment to be read this class should be registered with Java's
SPI mechanism (registered in META-INF/ of your jar file, etc).

Parameters:

name - must be all ascii alphanumeric, and less than 128 characters in length.