com.jmatio.io.MLObjectPlaceholder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of matfilerw Show documentation
Show all versions of matfilerw Show documentation
MatFileRW - Read and write .mat files
/*
* Code licensed under new-style BSD (see LICENSE).
* All code up to tags/original: Copyright (c) 2006, Wojciech Gradkowski
* All code after tags/original: Copyright (c) 2015, DiffPlug
*/
package com.jmatio.io;
import com.jmatio.types.MLArray;
/**
*
* @author Matthew Dawson
*/
class MLObjectPlaceholder extends MLArray {
MLObjectPlaceholder(String name, String className, int[][] information) {
super(name, new int[]{information[2][0], information[3][0]}, -1, 0);
this.className = className;
this.information = information;
this.objectIds = new int[information.length - 5];
for (int i = 0; i < objectIds.length; ++i) {
objectIds[i] = information[i + 4][0];
}
this.classId = information[information.length - 1][0];
}
final String className;
final int[][] information;
final int[] objectIds;
final int classId;
}