code: private void resizeBuffer() {
          if (buffer == null) {
              buffer = new byte[getDefaultBufferSize()];
              pos = 0;
              readPos = 0;
          } else {
              byte[] b = new byte[buffer.length * DEFAULT_BUFFER_RESIZE_FACTOR];
              System.arraycopy(buffer, 0, b, 0, buffer.length);
              buffer = b;
          }
      }
docs: Increases our buffer by the {@link #DEFAULT_BUFFER_RESIZE_FACTOR}.