< prev index next >

src/java.base/share/classes/java/io/ObjectInput.java

Print this page

        

@@ -65,11 +65,11 @@
      * @param b the buffer into which the data is read
      * @return  the actual number of bytes read, -1 is
      *          returned when the end of the stream is reached.
      * @exception IOException If an I/O error has occurred.
      */
-    public int read(byte b[]) throws IOException;
+    public int read(byte[] b) throws IOException;
 
     /**
      * Reads into an array of bytes.  This method will
      * block until some input is available.
      * @param b the buffer into which the data is read

@@ -77,11 +77,11 @@
      * @param len the maximum number of bytes read
      * @return  the actual number of bytes read, -1 is
      *          returned when the end of the stream is reached.
      * @exception IOException If an I/O error has occurred.
      */
-    public int read(byte b[], int off, int len) throws IOException;
+    public int read(byte[] b, int off, int len) throws IOException;
 
     /**
      * Skips n bytes of input.
      * @param n the number of bytes to be skipped
      * @return  the actual number of bytes skipped.
< prev index next >