/** * Flush the {@link #pendingBuffer} buffer when it is not empty. * * @see #flushData() */ private void flushDataIfNecessary() { if (pendingLength > 0) { flushData(); } }
/** * Append a byte in the {@link #pendingBuffer} buffer. When the {@link #pendingBuffer} buffer is full, data * is flushed. * * @param b the byte * @see #flushData() */ private void appendData(byte b) { if (pendingLength >= pendingBuffer.length) { flushData(); } pendingBuffer[pendingLength++] = b; }
/** * Flush the {@link #pendingBuffer} buffer when it is not empty. * * @see #flushData() */ private void flushDataIfNecessary() { if (pendingLength > 0) { flushData(); } }
/** * Append a byte in the {@link #pendingBuffer} buffer. When the {@link #pendingBuffer} buffer is full, data * is flushed. * * @param b the byte * @see #flushData() */ private void appendData(byte b) { if (pendingLength >= pendingBuffer.length) { flushData(); } pendingBuffer[pendingLength++] = b; }