|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.javasoft.jsmat.MatWriter<DataOutputStream>
ch.javasoft.jsmat.MatOutputStreamWriter
public class MatOutputStreamWriter
The MatOutputStreamWriter writes a .mat file structure to
a given OutputStream.
Note: Writing a file is more memory efficient with the MatFileWriter.
This implementation uses byte array buffers to compute the block sizes before
writing to the real output stream.
| Field Summary |
|---|
| Fields inherited from class ch.javasoft.jsmat.MatWriter |
|---|
mReservedWriter |
| Constructor Summary | |
|---|---|
MatOutputStreamWriter(OutputStream out)
Constructor, writing data to the given output stream |
|
| Method Summary | |
|---|---|
void |
close()
Closes the underlying output stream |
protected VariableWriter |
createVariableWriter()
Creates a writer for variable output. |
protected void |
initDataOutput(DataOutputStream dataOutput)
No operation is performed here (no initialization needed) |
| 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 MatOutputStreamWriter(OutputStream out)
throws IOException
out - the output stream to write to
IOException - if any io exception occurs| Method Detail |
|---|
protected void initDataOutput(DataOutputStream dataOutput)
throws IOException
initDataOutput in class MatWriter<DataOutputStream>dataOutput - 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<DataOutputStream>IOException
public void close()
throws IOException
close in class MatWriter<DataOutputStream>IOException - if any io exception occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||