50 public Object readObject() 51 throws ClassNotFoundException, IOException; 52 53 /** 54 * Reads a byte of data. This method will block if no input is 55 * available. 56 * @return the byte read, or -1 if the end of the 57 * stream is reached. 58 * @exception IOException If an I/O error has occurred. 59 */ 60 public int read() throws IOException; 61 62 /** 63 * Reads into an array of bytes. This method will 64 * block until some input is available. 65 * @param b the buffer into which the data is read 66 * @return the actual number of bytes read, -1 is 67 * returned when the end of the stream is reached. 68 * @exception IOException If an I/O error has occurred. 69 */ 70 public int read(byte b[]) throws IOException; 71 72 /** 73 * Reads into an array of bytes. This method will 74 * block until some input is available. 75 * @param b the buffer into which the data is read 76 * @param off the start offset of the data 77 * @param len the maximum number of bytes read 78 * @return the actual number of bytes read, -1 is 79 * returned when the end of the stream is reached. 80 * @exception IOException If an I/O error has occurred. 81 */ 82 public int read(byte b[], int off, int len) throws IOException; 83 84 /** 85 * Skips n bytes of input. 86 * @param n the number of bytes to be skipped 87 * @return the actual number of bytes skipped. 88 * @exception IOException If an I/O error has occurred. 89 */ 90 public long skip(long n) throws IOException; 91 92 /** 93 * Returns the number of bytes that can be read 94 * without blocking. 95 * @return the number of available bytes. 96 * @exception IOException If an I/O error has occurred. 97 */ 98 public int available() throws IOException; 99 100 /** 101 * Closes the input stream. Must be called 102 * to release any resources associated with | 50 public Object readObject() 51 throws ClassNotFoundException, IOException; 52 53 /** 54 * Reads a byte of data. This method will block if no input is 55 * available. 56 * @return the byte read, or -1 if the end of the 57 * stream is reached. 58 * @exception IOException If an I/O error has occurred. 59 */ 60 public int read() throws IOException; 61 62 /** 63 * Reads into an array of bytes. This method will 64 * block until some input is available. 65 * @param b the buffer into which the data is read 66 * @return the actual number of bytes read, -1 is 67 * returned when the end of the stream is reached. 68 * @exception IOException If an I/O error has occurred. 69 */ 70 public int read(byte[] b) throws IOException; 71 72 /** 73 * Reads into an array of bytes. This method will 74 * block until some input is available. 75 * @param b the buffer into which the data is read 76 * @param off the start offset of the data 77 * @param len the maximum number of bytes read 78 * @return the actual number of bytes read, -1 is 79 * returned when the end of the stream is reached. 80 * @exception IOException If an I/O error has occurred. 81 */ 82 public int read(byte[] b, int off, int len) throws IOException; 83 84 /** 85 * Skips n bytes of input. 86 * @param n the number of bytes to be skipped 87 * @return the actual number of bytes skipped. 88 * @exception IOException If an I/O error has occurred. 89 */ 90 public long skip(long n) throws IOException; 91 92 /** 93 * Returns the number of bytes that can be read 94 * without blocking. 95 * @return the number of available bytes. 96 * @exception IOException If an I/O error has occurred. 97 */ 98 public int available() throws IOException; 99 100 /** 101 * Closes the input stream. Must be called 102 * to release any resources associated with |