play.cache.PlayObjectInputStream Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of framework Show documentation
Show all versions of framework Show documentation
RePlay is a fork of the Play1 framework, created by Codeborne.
package play.cache;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectStreamClass;
class PlayObjectInputStream extends ObjectInputStream {
PlayObjectInputStream(byte[] data) throws IOException {
super(new ByteArrayInputStream(data));
}
@Override
protected Class> resolveClass(ObjectStreamClass desc) throws ClassNotFoundException {
return Class.forName(desc.getName(), false, Thread.currentThread().getContextClassLoader());
}
}