private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {
  s.defaultReadObject();
  capturingGroupCount=1;
  localCount=0;
  compiled=false;
  if (pattern.length() == 0) {
    root=new Start(lastAccept);
    matchRoot=lastAccept;
    compiled=true;
  }
}

private void readObject ( java . io . ObjectInputStream s ) throws java . io . IOException , ClassNotFoundException { s . defaultReadObject ( ) ; capturingGroupCount = 1 ; localCount = 0 ; compiled = false ; if ( pattern . length ( ) == 0 ) { root = new Start ( lastAccept ) ; matchRoot = lastAccept ; compiled = true ; } }
recompile the pattern instance from a stream . the original pattern string is read in and the object tree is recompiled from it .
