@Override
  public synchronized boolean needsInput() {
    // Consume remaining compressed data?
    if (uncompressedDirectBuf.remaining() > 0) {
      return false;
    }

    // Check if lz4 has consumed all input
    if (compressedDirectBufLen <= 0) {
      // Check if we have consumed all user-input
      if (userBufLen <= 0) {
        return true;
      } else {
        setInputFromSavedData();
      }
    }

    return false;
  }
@ Override public synchronized boolean needsInput ( ) { if ( uncompressedDirectBuf . remaining ( ) > 0 ) { return false ; } if ( compressedDirectBufLen <= 0 ) { if ( userBufLen <= 0 ) { return true ; } else { setInputFromSavedData ( ) ; } } return false ; }
Returns true if the input data buffer is empty and
{@link #setInput(byte[], int, int)} should be called to
provide more input.

@return <code>true</code> if the input data buffer is empty and
{@link #setInput(byte[], int, int)} should be called in
order to provide more input.