Package weka.gui
Class SaveBuffer
java.lang.Object
weka.gui.SaveBuffer
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.
- Version:
- $Revision 1.0 $
- Author:
- Mark Hall (mhall@cs.waikato.ac.nz)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Main method for testing this classboolean
save
(StringBuffer buf) Save a buffer
-
Constructor Details
-
SaveBuffer
Constructor- Parameters:
log
- the logger to send messages toparent
- the parent component will be requesting a save
-
-
Method Details
-
save
Save a buffer- Parameters:
buf
- the buffer to save- Returns:
- true if the save is completed succesfully
-
main
Main method for testing this class
-