ch.javasoft.jsmat.variable
Class MatReservedStructure

java.lang.Object
  extended by ch.javasoft.jsmat.variable.MatVariable
      extended by ch.javasoft.jsmat.variable.MatReserved
          extended by ch.javasoft.jsmat.variable.MatReservedComplex
              extended by ch.javasoft.jsmat.variable.MatReservedStructure

public class MatReservedStructure
extends MatReservedComplex


Field Summary
 
Fields inherited from class ch.javasoft.jsmat.variable.MatVariable
DEFAULT_NAME, mDims, mMatClass
 
Constructor Summary
MatReservedStructure(Map<String,? extends MatVariable> fields)
           
MatReservedStructure(Map<String,? extends MatVariable>[] fields, int[] dims)
           
 
Method Summary
protected  void checkNoReservedWriter()
           
 ReservedWriter createReservedWriter(ReservedComplexWriter writer, MatReserved reserved)
           
<A> ReservedMatrixWriter<A>
createReservedWriter(ReservedComplexWriter writer, MatReservedMatrix<A> reservedMatrix)
           
protected  int getRawDataSize()
           
 void writeDataBlockEnd(DataOutput out)
          Called when the write process of the reserved variable is about to complete, that is, when ReservedWriter.close() is called.
 void writeDataBlockStart(String name, DataOutput out)
           
 
Methods inherited from class ch.javasoft.jsmat.variable.MatVariable
checkRawDataSizeOverflow, checkValueLength, getDimLength, getFlags, getSize, writeStart
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatReservedStructure

public MatReservedStructure(Map<String,? extends MatVariable> fields)

MatReservedStructure

public MatReservedStructure(Map<String,? extends MatVariable>[] fields,
                            int[] dims)
Method Detail

checkNoReservedWriter

protected void checkNoReservedWriter()
                              throws IOException
Throws:
IOException

writeDataBlockStart

public void writeDataBlockStart(String name,
                                DataOutput out)
                         throws IOException
Specified by:
writeDataBlockStart in class MatReserved
Throws:
IOException

writeDataBlockEnd

public void writeDataBlockEnd(DataOutput out)
                       throws IOException
Description copied from class: MatReserved
Called when the write process of the reserved variable is about to complete, that is, when ReservedWriter.close() is called.

Specified by:
writeDataBlockEnd in class MatReserved
Throws:
IOException
See Also:
MatReserved.writeDataBlockStart(String, DataOutput)

createReservedWriter

public <A> ReservedMatrixWriter<A> createReservedWriter(ReservedComplexWriter writer,
                                                        MatReservedMatrix<A> reservedMatrix)
                                             throws IOException
Specified by:
createReservedWriter in class MatReservedComplex
Throws:
IOException

createReservedWriter

public ReservedWriter createReservedWriter(ReservedComplexWriter writer,
                                           MatReserved reserved)
                                    throws IOException
Specified by:
createReservedWriter in class MatReservedComplex
Throws:
IOException

getRawDataSize

protected int getRawDataSize()
Specified by:
getRawDataSize in class MatVariable
Returns:
size of raw data excluding type(4) and size(4) and name