/[classpath]/classpath/java/io/ObjectInput.java
ViewVC logotype

Diff of /classpath/java/io/ObjectInput.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by arenn, Sun Mar 9 21:54:35 2003 UTC revision 1.9 by mkoch, Sun Mar 23 10:53:30 2003 UTC
# Line 58  public interface ObjectInput extends Dat Line 58  public interface ObjectInput extends Dat
58      */      */
59    public abstract int available() throws IOException;    public abstract int available() throws IOException;
60    
   /*************************************************************************/  
   
61    /**    /**
62      * This method reading a byte of data from a stream.  It returns that byte      * This method reading a byte of data from a stream.  It returns that byte
63      * as an int.  This method blocks if no data is available to be read.      * as an int.  This method blocks if no data is available to be read.
# Line 70  public interface ObjectInput extends Dat Line 68  public interface ObjectInput extends Dat
68      */      */
69    public abstract int read() throws IOException;    public abstract int read() throws IOException;
70    
   /*************************************************************************/  
   
71    /**    /**
72      * This method reads raw bytes and stores them them a byte array buffer.      * This method reads raw bytes and stores them them a byte array buffer.
73      * Note that this method will block if no data is available.  However,      * Note that this method will block if no data is available.  However,
# Line 86  public interface ObjectInput extends Dat Line 82  public interface ObjectInput extends Dat
82      */      */
83    public abstract int read(byte[] buf) throws IOException;    public abstract int read(byte[] buf) throws IOException;
84    
   /*************************************************************************/  
   
85    /**    /**
86      * This method reads raw bytes and stores them in a byte array buffer      * This method reads raw bytes and stores them in a byte array buffer
87      * <code>buf</code> starting at position <code>offset</code> into the      * <code>buf</code> starting at position <code>offset</code> into the
# Line 107  public interface ObjectInput extends Dat Line 101  public interface ObjectInput extends Dat
101      */      */
102    public abstract int read(byte[] buf, int offset, int len) throws IOException;    public abstract int read(byte[] buf, int offset, int len) throws IOException;
103    
   /*************************************************************************/  
   
104    /**    /**
105      * Reads an object instance and returns it.  If the class for the object      * Reads an object instance and returns it.  If the class for the object
106      * being read cannot be found, then a ClassNotFoundException will      * being read cannot be found, then a ClassNotFoundException will
# Line 123  public interface ObjectInput extends Dat Line 115  public interface ObjectInput extends Dat
115    public abstract Object readObject()    public abstract Object readObject()
116      throws ClassNotFoundException, IOException;      throws ClassNotFoundException, IOException;
117    
   /*************************************************************************/  
   
118    /**    /**
119      * This method causes the specified number of bytes to be read and      * This method causes the specified number of bytes to be read and
120      * discarded.  It is possible that fewer than the requested number of bytes      * discarded.  It is possible that fewer than the requested number of bytes
# Line 138  public interface ObjectInput extends Dat Line 128  public interface ObjectInput extends Dat
128      */      */
129    public abstract long skip(long num_bytes) throws IOException;    public abstract long skip(long num_bytes) throws IOException;
130    
   /*************************************************************************/  
   
131    /**    /**
132      * This method closes the input source      * This method closes the input source
133      *      *

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26