private void readObject(ObjectInputStream in) throws ClassNotFoundException, IOException {
  in.defaultReadObject();
  setBeforeCaretText(this.beforeCaret);
  setAfterCaretText(this.afterCaret);
}

private void readObject ( ObjectInputStream in ) throws ClassNotFoundException , IOException { in . defaultReadObject ( ) ; setBeforeCaretText ( this . beforeCaret ) ; setAfterCaretText ( this . afterCaret ) ; }
called when reading a serialized version of this document . this is overridden to initialize the transient members of this class .
