private void readObject(final java.io.ObjectInputStream in) throws IOException, ClassNotFoundException {
    try {
      field = (String) in.readObject();
      String patternString = (String) in.readObject();
      pattern = Pattern.compile(patternString, Pattern.CASE_INSENSITIVE);
    } catch (PatternSyntaxException e) {
      throw new IOException("Invalid LIKE rule - " + e.getMessage());
    }
  }
Deserialize the state of the object.

@param in object input stream
@throws IOException            if IOException during deserialization
@throws ClassNotFoundException if class not found.
olv-core/src/main/java/pl/otros/logview/accept/query/org/apache/log4j/rule/LikeRule.java