protected void processBytes(byte[] buf,int off,int len){
  nBytesIn+=len;
  if (len < 1 || state.isDone())   return;
  if (state == State.ROW_READY)   throw new PngjInputException("this should only be called if waitingForMoreInput");
  if (inf.needsDictionary() || !inf.needsInput())   throw new RuntimeException("should not happen");
  inf.setInput(buf,off,len);
  if (isCallbackMode()) {
    while (inflateData()) {
      int nextRowLen=processRowCallback();
      prepareForNextRow(nextRowLen);
      if (isDone())       processDoneCallback();
    }
  }
 else   inflateData();
}

protected void processBytes ( byte [ ] buf , int off , int len ) { nBytesIn += len ; if ( len < 1 || state . isDone ( ) ) return ; if ( state == State . ROW_READY ) throw new PngjInputException ( "this should only be called if waitingForMoreInput" ) ; if ( inf . needsDictionary ( ) || ! inf . needsInput ( ) ) throw new RuntimeException ( "should not happen" ) ; inf . setInput ( buf , off , len ) ; if ( isCallbackMode ( ) ) { while ( inflateData ( ) ) { int nextRowLen = processRowCallback ( ) ; prepareForNextRow ( nextRowLen ) ; if ( isDone ( ) ) processDoneCallback ( ) ; } } else inflateData ( ) ; }
feeds the inflater with the compressed bytes in poll mode , the caller should not call repeatedly this , without consuming first , checking isdatareadyforconsumer ( )
