1. /*
  2. * @(#)RestorableInputStream.java 1.3 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package com.sun.corba.se.internal.iiop;
  8. /**
  9. * Defines the methods on an input stream which provide
  10. * a way to get and restore its internal state without
  11. * violating encapsulation.
  12. */
  13. interface RestorableInputStream
  14. {
  15. Object createStreamMemento();
  16. void restoreInternalState(Object streamMemento);
  17. }