ch.javasoft.jsmat
Class ReservedComplexWriter

java.lang.Object
  extended by ch.javasoft.jsmat.ReservedWriter
      extended by ch.javasoft.jsmat.ReservedComplexWriter

public class ReservedComplexWriter
extends ReservedWriter

Writer to write complex reserved variables such as structs. Complex reserved variables nest other variables, which are finally matrices.

See Also:
ReservedWriter, ReservedMatrixWriter

Field Summary
 
Fields inherited from class ch.javasoft.jsmat.ReservedWriter
mDataOutput, mReserved, mWriter
 
Constructor Summary
protected ReservedComplexWriter(MatWriter<? extends DataOutput> writer, MatReserved reserved)
          Constructor to write to top-level variables.
protected ReservedComplexWriter(ReservedComplexWriter complexWriter, MatReserved reserved)
          Constructor to write to complex types, such as structs.
 
Method Summary
 
Methods inherited from class ch.javasoft.jsmat.ReservedWriter
close, closeVariableWriter, open
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReservedComplexWriter

protected ReservedComplexWriter(ReservedComplexWriter complexWriter,
                                MatReserved reserved)
Constructor to write to complex types, such as structs.

Parameters:
complexWriter - the writer for the complex type
reserved - the reserved variable of the nested type, e.g. a field of a struct

ReservedComplexWriter

protected ReservedComplexWriter(MatWriter<? extends DataOutput> writer,
                                MatReserved reserved)
Constructor to write to top-level variables.

Parameters:
writer - the mat writer, e.g. writing a matlab file
reserved - the reserved variable