< prev index next >
src/java.base/share/classes/java/io/BufferedOutputStream.java
Print this page
@@ -36,11 +36,11 @@
*/
public class BufferedOutputStream extends FilterOutputStream {
/**
* The internal buffer where data is stored.
*/
- protected byte buf[];
+ protected byte[] buf;
/**
* The number of valid bytes in the buffer. This value is always
* in the range {@code 0} through {@code buf.length}; elements
* {@code buf[0]} through {@code buf[count-1]} contain valid
@@ -112,11 +112,11 @@
* @param off the start offset in the data.
* @param len the number of bytes to write.
* @exception IOException if an I/O error occurs.
*/
@Override
- public synchronized void write(byte b[], int off, int len) throws IOException {
+ public synchronized void write(byte[] b, int off, int len) throws IOException {
if (len >= buf.length) {
/* If the request length exceeds the size of the output buffer,
flush the output buffer and then write the data directly.
In this way buffered streams will cascade harmlessly. */
flushBuffer();
< prev index next >