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

play.cache.PlayObjectInputStream Maven / Gradle / Ivy

There is a newer version: 2.6.2
Show newest version
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());
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy