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_formatFields 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 booleanclose()booleanfinalize(int m, int n)booleanfinalizeAsciiSparse(int m, int n)booleanfinalizeBinarySparse(int m, int n)booleanisWriting()booleanopen()booleanopenAsciiSparse()booleanopenBinarySparse()booleanwrite(InterfaceIOOptions options, ProgressUpdater progress_bar)Writes this object according to the givenoptions.booleanwriteLine(int i, int j, double value)booleanwriteLineAsciiSparse(int i, int j, double value)booleanwriteLineBinarySparse(int i, int j, double value)booleanwriteMatrix(Jama.Matrix m, ProgressUpdater progress_bar)Methods inherited from class mgui.io.domestic.variables.MatrixFileWriter
getFailureMessage, getObjectIcon, getSuccessMessage, getTitle, setFormat, writeMatrixMethods 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
-
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: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:
-
writeMatrix
public boolean writeMatrix(Jama.Matrix m, ProgressUpdater progress_bar) throws java.io.IOException, InterfaceIOException- Specified by:
writeMatrixin classMatrixFileWriter- Throws:
java.io.IOExceptionInterfaceIOException
-