|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.javasoft.jsmat.MatWriter<RandomAccessFile>
ch.javasoft.jsmat.MatFileWriter
public class MatFileWriter
The MatFileWriter writes a .mat file.
This class is a memory efficient version of MatOutputStreamWriter
optimized for file targets. A RandomAccessFile is used to write the
file.
| Field Summary |
|---|
| Fields inherited from class ch.javasoft.jsmat.MatWriter |
|---|
mReservedWriter |
| Constructor Summary | |
|---|---|
MatFileWriter(File file)
Constructor to write to the given file |
|
MatFileWriter(RandomAccessFile file)
Constructor to write to the given ras file |
|
| Method Summary | |
|---|---|
void |
close()
Closes the underlying file |
protected VariableWriter |
createVariableWriter()
Creates a writer for variable output. |
protected void |
initDataOutput(RandomAccessFile ras)
The file is cleared, that is, RandomAccessFile.setLength(long)
is called. |
| Methods inherited from class ch.javasoft.jsmat.MatWriter |
|---|
checkNoReservedWriter, createReservedWriter, createReservedWriter, write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MatFileWriter(File file)
throws IOException
file - the file to create
IOException - if any io exception occurs
public MatFileWriter(RandomAccessFile file)
throws IOException
file - the ras file to create
IOException - if any io exception occurs| Method Detail |
|---|
protected void initDataOutput(RandomAccessFile ras)
throws IOException
RandomAccessFile.setLength(long)
is called.
initDataOutput in class MatWriter<RandomAccessFile>ras - the data output object to initialize
IOException
protected VariableWriter createVariableWriter()
throws IOException
MatWriterVariableWriter.open() is called. The same structures must be
released again after writing the variable data, which is done in
VariableWriter.close().
createVariableWriter in class MatWriter<RandomAccessFile>IOException
public void close()
throws IOException
close in class MatWriter<RandomAccessFile>IOException - if any io exception occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||