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.String
getFailureMessage()
javax.swing.Icon
getObjectIcon()
Returns theIcon
associated with this object.java.lang.String
getSuccessMessage()
java.lang.String
getTitle()
boolean
write(InterfaceIOOptions options, ProgressUpdater progress_bar)
Writes this object according to the givenoptions
.boolean
writeNameMap(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, write
Methods 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:FileWriter
Writes 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:
write
in classFileWriter
- Returns:
-
writeNameMap
-
getSuccessMessage
public java.lang.String getSuccessMessage()- Specified by:
getSuccessMessage
in interfaceInterfaceIO
- Overrides:
getSuccessMessage
in classFileWriter
-
getFailureMessage
public java.lang.String getFailureMessage()- Overrides:
getFailureMessage
in classFileWriter
-
getTitle
public java.lang.String getTitle()- Specified by:
getTitle
in interfaceInterfaceIO
- Overrides:
getTitle
in classFileWriter
-
getObjectIcon
public javax.swing.Icon getObjectIcon()Description copied from interface:IconObject
Returns theIcon
associated with this object.- Specified by:
getObjectIcon
in interfaceIconObject
- Overrides:
getObjectIcon
in classFileWriter
- Returns:
-