1. /*
  2. * @(#)MarkAndResetHandler.java 1.6 03/12/19
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package com.sun.corba.se.impl.encoding;
  8. /**
  9. * Defines an abstraction for a RestorableInputStream to
  10. * implement mark/reset.
  11. */
  12. interface MarkAndResetHandler
  13. {
  14. void mark(RestorableInputStream inputStream);
  15. void fragmentationOccured(ByteBufferWithInfo newFragment);
  16. void reset();
  17. }