private void readObject(final java.io.ObjectInputStream in) throws IOException {
    populateLevels();
    int levelInt = in.readInt();
    if (Level.INFO.intValue() == levelInt) {
      level = Level.INFO;
    } else if (Level.CONFIG.intValue() == levelInt) {
      level = Level.CONFIG;
    } else if (Level.FINE.intValue() == levelInt) {
      level = Level.FINE;
    } else if (Level.FINER.intValue() == levelInt) {
      level = Level.FINER;
    } else if (Level.FINEST.intValue() == levelInt) {
      level = Level.FINEST;
    } else if (Level.SEVERE.intValue() == levelInt) {
      level = Level.SEVERE;
    } else if (Level.WARNING.intValue() == levelInt) {
      level = Level.WARNING;
    } else {
      level = Level.FINEST;
    }
  }
Deserialize the state of the object.

@param in object input stream.
@throws IOException if error in reading stream for deserialization.
olv-core/src/main/java/pl/otros/logview/accept/query/org/apache/log4j/rule/LevelEqualsRule.java