it.ssc.io.MyObjectInputStream Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jsr331-ssc Show documentation
Show all versions of jsr331-ssc Show documentation
This is a JSR331 interface for SSC (Software for the Calculation of the Simplex) is a java library for solving linear programming problems v. 3.0.1.
SSC was designed and developed by Stefano Scarioli.
The newest version!
package it.ssc.io;
import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectInputStream;
import java.io.ObjectStreamClass;
public class MyObjectInputStream extends ObjectInputStream {
private Class my_class;
public Class resolveClass(ObjectStreamClass desc) throws IOException, ClassNotFoundException {
return my_class;
}
public MyObjectInputStream(InputStream in, Class my_class) throws IOException {
super(in);
this.my_class=my_class;
}
}