Package org.ujmp.core.importer
Class DefaultMatrixFileImporter
- java.lang.Object
-
- org.ujmp.core.importer.AbstractMatrixImporter
-
- org.ujmp.core.importer.AbstractMatrixFileImporter
-
- org.ujmp.core.importer.DefaultMatrixFileImporter
-
- All Implemented Interfaces:
MatrixBMPImportFormat
,MatrixDenseCSVImportFormat
,MatrixGIFImportFormat
,MatrixImportFormat
,MatrixJPGImportFormat
,MatrixPDFImportFormat
,MatrixPNGImportFormat
,MatrixTIFFImportFormat
,MatrixFileImporter
,MatrixImporter
public class DefaultMatrixFileImporter extends AbstractMatrixFileImporter implements MatrixJPGImportFormat, MatrixPNGImportFormat, MatrixBMPImportFormat, MatrixGIFImportFormat, MatrixTIFFImportFormat, MatrixDenseCSVImportFormat, MatrixPDFImportFormat
-
-
Constructor Summary
Constructors Constructor Description DefaultMatrixFileImporter(Matrix matrix, java.io.File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Matrix
asBMP()
Matrix
asDenseCSV()
Matrix
asDenseCSV(char columnSeparator)
Matrix
asDenseCSV(char columnSeparator, char enclosingCharacter)
Matrix
asGIF()
Matrix
asJPG()
Matrix
asPDF()
Matrix
asPNG()
Matrix
asTIFF()
-
Methods inherited from class org.ujmp.core.importer.AbstractMatrixFileImporter
getFile
-
Methods inherited from class org.ujmp.core.importer.AbstractMatrixImporter
getTargetMatrix
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ujmp.core.importer.MatrixImporter
getTargetMatrix
-
-
-
-
Constructor Detail
-
DefaultMatrixFileImporter
public DefaultMatrixFileImporter(Matrix matrix, java.io.File file)
-
-
Method Detail
-
asJPG
public Matrix asJPG() throws java.io.IOException
- Specified by:
asJPG
in interfaceMatrixJPGImportFormat
- Throws:
java.io.IOException
-
asGIF
public Matrix asGIF() throws java.io.IOException
- Specified by:
asGIF
in interfaceMatrixGIFImportFormat
- Throws:
java.io.IOException
-
asTIFF
public Matrix asTIFF() throws java.io.IOException
- Specified by:
asTIFF
in interfaceMatrixTIFFImportFormat
- Throws:
java.io.IOException
-
asBMP
public Matrix asBMP() throws java.io.IOException
- Specified by:
asBMP
in interfaceMatrixBMPImportFormat
- Throws:
java.io.IOException
-
asPNG
public Matrix asPNG() throws java.io.IOException
- Specified by:
asPNG
in interfaceMatrixPNGImportFormat
- Throws:
java.io.IOException
-
asDenseCSV
public Matrix asDenseCSV() throws java.io.IOException
- Specified by:
asDenseCSV
in interfaceMatrixDenseCSVImportFormat
- Throws:
java.io.IOException
-
asDenseCSV
public Matrix asDenseCSV(char columnSeparator) throws java.io.IOException
- Specified by:
asDenseCSV
in interfaceMatrixDenseCSVImportFormat
- Throws:
java.io.IOException
-
asDenseCSV
public Matrix asDenseCSV(char columnSeparator, char enclosingCharacter) throws java.io.IOException
- Specified by:
asDenseCSV
in interfaceMatrixDenseCSVImportFormat
- Throws:
java.io.IOException
-
asPDF
public Matrix asPDF() throws java.io.IOException
- Specified by:
asPDF
in interfaceMatrixPDFImportFormat
- Throws:
java.io.IOException
-
-