@@ -36,19 +36,19 @@ public class CircularBufferInputStream extends InputStream {
3636 * Creates a new instance, which filters the given input stream, and
3737 * uses the given buffer size.
3838 *
39- * @param pIn The input stream, which is being buffered.
40- * @param pBufferSize The size of the {@link CircularByteBuffer}, which is
39+ * @param inputStream The input stream, which is being buffered.
40+ * @param bufferSize The size of the {@link CircularByteBuffer}, which is
4141 * used internally.
4242 */
43- public CircularBufferInputStream (final InputStream pIn , final int pBufferSize ) {
44- Objects .requireNonNull (pIn , "InputStream" );
45- if (pBufferSize <= 0 ) {
46- throw new IllegalArgumentException ("Invalid buffer size: " + pBufferSize );
43+ public CircularBufferInputStream (final InputStream inputStream , final int bufferSize ) {
44+ Objects .requireNonNull (inputStream , "InputStream" );
45+ if (bufferSize <= 0 ) {
46+ throw new IllegalArgumentException ("Invalid buffer size: " + bufferSize );
4747 }
48- in = pIn ;
49- buffer = new CircularByteBuffer (pBufferSize );
50- bufferSize = pBufferSize ;
51- eofSeen = false ;
48+ this . in = inputStream ;
49+ this . buffer = new CircularByteBuffer (bufferSize );
50+ this . bufferSize = bufferSize ;
51+ this . eofSeen = false ;
5252 }
5353
5454 /**
@@ -87,12 +87,12 @@ protected void fillBuffer() throws IOException {
8787 /**
8888 * Fills the buffer from the input stream until the given number of bytes have been added to the buffer.
8989 *
90- * @param pNumber number of byte to fill into the buffer
90+ * @param number number of byte to fill into the buffer
9191 * @return true if the buffer has bytes
9292 * @throws IOException in case of an error while reading from the input stream.
9393 */
94- protected boolean haveBytes (final int pNumber ) throws IOException {
95- if (buffer .getCurrentNumberOfBytes () < pNumber ) {
94+ protected boolean haveBytes (final int number ) throws IOException {
95+ if (buffer .getCurrentNumberOfBytes () < number ) {
9696 fillBuffer ();
9797 }
9898 return buffer .hasBytes ();
@@ -107,8 +107,8 @@ public int read() throws IOException {
107107 }
108108
109109 @ Override
110- public int read (final byte [] pBuffer ) throws IOException {
111- return read (pBuffer , 0 , pBuffer .length );
110+ public int read (final byte [] buffer ) throws IOException {
111+ return read (buffer , 0 , buffer .length );
112112 }
113113
114114 @ Override
0 commit comments