Documentation of 'weka.gui.SaveBuffer' Java class
SaveBuffer
weka.gui

Class SaveBuffer



  • public class SaveBuffer
    extends java.lang.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.
    • Constructor Summary

      Constructors 
      Constructor and Description
      SaveBuffer(Logger log, java.awt.Component parent)
      Constructor
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      static void main(java.lang.String[] args)
      Main method for testing this class
      boolean save(java.lang.StringBuffer buf)
      Save a buffer
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SaveBuffer

        public SaveBuffer(Logger log,
                          java.awt.Component parent)
        Constructor
        Parameters:
        log - the logger to send messages to
        parent - the parent component will be requesting a save
    • Method Detail

      • save

        public boolean save(java.lang.StringBuffer buf)
        Save a buffer
        Parameters:
        buf - the buffer to save
        Returns:
        true if the save is completed succesfully
      • main

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

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.