程序包 weka.gui

类 SaveBuffer

java.lang.Object
weka.gui.SaveBuffer

public class SaveBuffer extends Object
This class handles the saving of StringBuffers to files. It will pop up a file chooser allowing the user to select a destination file. If the file exists, the user is prompted for the correct course of action, ie. overwriting, appending, selecting a new filename or canceling.
版本:
$Revision 1.0 $
作者:
Mark Hall (mhall@cs.waikato.ac.nz)
  • 构造器详细资料

    • SaveBuffer

      public SaveBuffer(Logger log, Component parent)
      Constructor
      参数:
      log - the logger to send messages to
      parent - the parent component will be requesting a save
  • 方法详细资料

    • save

      public boolean save(StringBuffer buf)
      Save a buffer
      参数:
      buf - the buffer to save
      返回:
      true if the save is completed succesfully
    • main

      public static void main(String[] args)
      Main method for testing this class