home *** CD-ROM | disk | FTP | other *** search
/ The Net: Ultimate Internet Guide / WWLCD1.ISO / pc / java / unuy2wen / cybcerone / utils / literate.java < prev    next >
Encoding:
Java Source  |  1996-08-14  |  454 b   |  20 lines

  1. // Literate.java
  2. // 24.02.96
  3. //
  4. // the interface for objects that know how to read themselves from a stream
  5.  
  6. package cybcerone.utils;
  7.  
  8. import java.io.DataInputStream;
  9. import java.io.IOException;
  10.  
  11. /**
  12.  * This interface is for any object
  13.  * that knows how to read itself from a DataInputStream.
  14.  */
  15. public interface Literate {
  16.  
  17.   /** reads 1 object from the input stream, returns it */
  18.   public Object read (DataInputStream inStream) throws IOException;
  19. }
  20.