Package mgui.io.domestic.maps
Class NameMapWriter
java.lang.Object
mgui.io.FileWriter
mgui.io.domestic.maps.NameMapWriter
- All Implemented Interfaces:
InterfaceIO,IconObject
public class NameMapWriter extends FileWriter
Writes a name map to an delimited ASCII file.
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields inherited from class mgui.io.FileWriter
dataFile, dataURL, failure_message, options, success_message -
Constructor Summary
Constructors Constructor Description NameMapWriter()NameMapWriter(java.io.File dir) -
Method Summary
Modifier and Type Method Description java.lang.StringgetFailureMessage()javax.swing.IcongetObjectIcon()Returns theIconassociated with this object.java.lang.StringgetSuccessMessage()java.lang.StringgetTitle()booleanwrite(InterfaceIOOptions options, ProgressUpdater progress_bar)Writes this object according to the givenoptions.booleanwriteNameMap(NameMap map, java.lang.String delim)Methods inherited from class mgui.io.FileWriter
getComplementIOType, getFile, getIOType, getLoaderComplement, getOptions, getProgressMessage, getSupportedObjects, getURL, setFile, setOptions, setURL, toString, write, writeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
NameMapWriter
public NameMapWriter() -
NameMapWriter
public NameMapWriter(java.io.File dir)
-
-
Method Details
-
write
Description copied from class:FileWriterWrites this object according to the givenoptions. If loaded object is of typePersistentObject, this method should also set the file writer and reference URL for the object.- Specified by:
writein classFileWriter- Returns:
-
writeNameMap
-
getSuccessMessage
public java.lang.String getSuccessMessage()- Specified by:
getSuccessMessagein interfaceInterfaceIO- Overrides:
getSuccessMessagein classFileWriter
-
getFailureMessage
public java.lang.String getFailureMessage()- Overrides:
getFailureMessagein classFileWriter
-
getTitle
public java.lang.String getTitle()- Specified by:
getTitlein interfaceInterfaceIO- Overrides:
getTitlein classFileWriter
-
getObjectIcon
public javax.swing.Icon getObjectIcon()Description copied from interface:IconObjectReturns theIconassociated with this object.- Specified by:
getObjectIconin interfaceIconObject- Overrides:
getObjectIconin classFileWriter- Returns:
-