1. /*
  2. * @(#)Flushable.java 1.1 04/04/21
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.io;
  8. import java.io.IOException;
  9. /**
  10. * A <tt>Flushable</tt> is a destination of data that can be flushed. The
  11. * flush method is invoked to write any buffered output to the underlying
  12. * stream.
  13. *
  14. * @version 1.1 04/04/21
  15. * @since 1.5
  16. */
  17. public interface Flushable {
  18. /**
  19. * Flushes this stream by writing any buffered output to the underlying
  20. * stream.
  21. *
  22. * @throws IOException If an I/O error occurs
  23. */
  24. void flush() throws IOException;
  25. }