}
public Codeword decode(int bits) {
switch (state) {
case LiteralLengthState:
Codeword codeword = literalLengthModel.decode(bits);
if (codeword.getSymbol() > 255) {
state = State.OffsetNibble0State;
}
return codeword;
case OffsetNibble0State:
state = State.OffsetNibble1State;