System.err.println(m_Filter.getOutputFormat());
  public void acceptInstance(InstanceEvent e) {    // to do!    if (m_filterThread != null) {      String messg = "Filter is currently batch processing!";      if (m_log != null) {	m_log.logMessage(messg);      } else {	System.err.println(messg);      }      return;    }    if (!(m_Filter instanceof StreamableFilter)) {      if (m_log != null) {	m_log.logMessage("ERROR : "+m_Filter.getClass().getName()			 +"can't process streamed instances; can't continue");      }      return;    }    if (e.getStatus() == InstanceEvent.FORMAT_AVAILABLE) {      try {	//	Instances dataset = e.getInstance().dataset();	Instances dataset = e.getStructure();	if (m_Filter instanceof SupervisedFilter) {	  // defualt to last column if no class is set	  if (dataset.classIndex() < 0) {	    dataset.setClassIndex(dataset.numAttributes()-1);	  }	}	// initialize filter	m_Filter.setInputFormat(dataset);	// attempt to determine post-filtering	// structure. If successful this can be passed on to instance	// listeners as a new FORMAT_AVAILABLE event.	m_structurePassedOn = false;	try {	  if (m_Filter.isOutputFormatDefined()) {	    System.err.println(m_Filter.getOutputFormat());	    m_ie.setStructure(m_Filter.getOutputFormat());	    notifyInstanceListeners(m_ie);	    m_structurePassedOn = true;	  }	} catch (Exception ex) {	  System.err.println("Error in obtaining post-filter structure: Filter.java");	}      } catch (Exception ex) {	ex.printStackTrace();      }      return;    }       // pass instance through the filter    try {      if (!m_Filter.input(e.getInstance())) {	if (m_log != null) {	  m_log.logMessage("ERROR : filter not ready to output instance");	}	return;      }            // collect output instance.      Instance filteredInstance = m_Filter.output();      if (filteredInstance == null) {	return;      }      if (!m_structurePassedOn) {	// pass on the new structure first	m_ie.setStructure(new Instances(filteredInstance.dataset(), 0));	notifyInstanceListeners(m_ie);	m_structurePassedOn = true;      }      m_ie.setInstance(filteredInstance);      m_ie.setStatus(e.getStatus());      notifyInstanceListeners(m_ie);    } catch (Exception ex) {      if (m_log != null) {	m_log.logMessage(ex.toString());      }      ex.printStackTrace();    }  }