Package mgui.io.domestic.variables
Class DefaultMatrixFileWriter
java.lang.Object
mgui.io.FileWriter
mgui.io.domestic.variables.MatrixFileWriter
mgui.io.domestic.variables.DefaultMatrixFileWriter
- All Implemented Interfaces:
InterfaceIO
,IconObject
public class DefaultMatrixFileWriter extends MatrixFileWriter
-
Field Summary
Fields inherited from class mgui.io.domestic.variables.MatrixFileWriter
number_format
Fields inherited from class mgui.io.FileWriter
dataFile, dataURL, failure_message, options, success_message
-
Constructor Summary
Constructors Constructor Description DefaultMatrixFileWriter()
DefaultMatrixFileWriter(java.io.File file)
DefaultMatrixFileWriter(java.io.File file, int format)
-
Method Summary
Modifier and Type Method Description boolean
close()
boolean
finalize(int m, int n)
boolean
finalizeAsciiSparse(int m, int n)
boolean
finalizeBinarySparse(int m, int n)
boolean
isWriting()
boolean
open()
boolean
openAsciiSparse()
boolean
openBinarySparse()
boolean
write(InterfaceIOOptions options, ProgressUpdater progress_bar)
Writes this object according to the givenoptions
.boolean
writeLine(int i, int j, double value)
boolean
writeLineAsciiSparse(int i, int j, double value)
boolean
writeLineBinarySparse(int i, int j, double value)
boolean
writeMatrix(Jama.Matrix m, ProgressUpdater progress_bar)
Methods inherited from class mgui.io.domestic.variables.MatrixFileWriter
getFailureMessage, getObjectIcon, getSuccessMessage, getTitle, setFormat, writeMatrix
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
-
Field Details
-
format
public int format -
precision
public int precision
-
-
Constructor Details
-
DefaultMatrixFileWriter
public DefaultMatrixFileWriter() -
DefaultMatrixFileWriter
public DefaultMatrixFileWriter(java.io.File file) -
DefaultMatrixFileWriter
public DefaultMatrixFileWriter(java.io.File file, int format)
-
-
Method Details
-
open
public boolean open() -
finalize
public boolean finalize(int m, int n) -
finalizeAsciiSparse
public boolean finalizeAsciiSparse(int m, int n) -
finalizeBinarySparse
public boolean finalizeBinarySparse(int m, int n) -
close
public boolean close() -
isWriting
public boolean isWriting() -
openAsciiSparse
public boolean openAsciiSparse() -
openBinarySparse
public boolean openBinarySparse() -
writeLine
public boolean writeLine(int i, int j, double value) -
writeLineAsciiSparse
public boolean writeLineAsciiSparse(int i, int j, double value) -
writeLineBinarySparse
public boolean writeLineBinarySparse(int i, int j, double value) -
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:
-
writeMatrix
public boolean writeMatrix(Jama.Matrix m, ProgressUpdater progress_bar) throws java.io.IOException, InterfaceIOException- Specified by:
writeMatrix
in classMatrixFileWriter
- Throws:
java.io.IOException
InterfaceIOException
-