All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jmatio.io.MLObjectPlaceholder Maven / Gradle / Ivy

There is a newer version: 3.1.1
Show newest version
/*
 * 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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy