getCharacterSetECIByValue static method

CharacterSetECI? getCharacterSetECIByValue(
  1. int value
)

@param value character set ECI value @return {@code CharacterSetECI} representing ECI of given value, or null if it is legal but unsupported @throws FormatException if ECI value is invalid

Implementation

static CharacterSetECI? getCharacterSetECIByValue(int value) {
  if (value < 0 || value >= 900) {
    throw FormatReaderException();
  }
  return _VALUE_TO_ECI[value];
}