@Override public boolean input(Instance instance) throws Exception {
  if (getInputFormat() == null) {
    throw new IllegalStateException("No input instance format defined");
  }
  if (m_NewBatch) {
    resetQueue();
    m_NewBatch=false;
  }
  if (outputFormatPeek() != null) {
    convertInstance(instance);
    return true;
  }
  bufferInput(instance);
  return false;
}

@ Override public boolean input ( Instance instance ) throws Exception { if ( getInputFormat ( ) == null ) { throw new IllegalStateException ( "No input instance format defined" ) ; } if ( m_NewBatch ) { resetQueue ( ) ; m_NewBatch = false ; } if ( outputFormatPeek ( ) != null ) { convertInstance ( instance ) ; return true ; } bufferInput ( instance ) ; return false ; }
input an instance for filtering . ordinarily the instance is processed and made available for output immediately . some filters require all instances be read before producing output .
