uk.ac.mrc.hgmp.embreo.filemgr
Class EmbreoFileSave

java.lang.Object
  |
  +--uk.ac.mrc.hgmp.embreo.filemgr.EmbreoFileSave

public class EmbreoFileSave
extends java.lang.Object


Constructor Summary
EmbreoFileSave(java.io.File name, java.lang.Object file, boolean overwrite)
          Save a file object to disk.
 
Method Summary
 java.lang.String writeMsg()
          A message to describe the save operation
 boolean writeOK()
          Whether the operation was successful
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmbreoFileSave

public EmbreoFileSave(java.io.File name,
                      java.lang.Object file,
                      boolean overwrite)
Save a file object to disk.

Parameters:
name - the File object to save to
file - An Object with the file contents
overwrite - whether we should overwrite an existing file
Method Detail

writeOK

public boolean writeOK()
Whether the operation was successful

Returns:
true if we wrote the file, otherwise false

writeMsg

public java.lang.String writeMsg()
A message to describe the save operation

Returns:
a message, primarily useful to indicate why saving the file failed