< prev index next >

src/java.desktop/share/classes/sun/applet/AppletObjectInputStream.java

Print this page




  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 /*
  26  * COPYRIGHT goes here
  27  */
  28 
  29 package sun.applet;
  30 
  31 import java.io.*;
  32 import java.lang.reflect.Array;
  33 
  34 /**
  35  * This subclass of ObjectInputStream delegates loading of classes to
  36  * an existing ClassLoader.




  37  */
  38 
  39 class AppletObjectInputStream extends ObjectInputStream
  40 {
  41     private AppletClassLoader loader;
  42 
  43     /**
  44      * Loader must be non-null;
  45      */
  46 
  47     public AppletObjectInputStream(InputStream in, AppletClassLoader loader)
  48             throws IOException, StreamCorruptedException {
  49 
  50         super(in);
  51         if (loader == null) {
  52             throw new AppletIllegalArgumentException("appletillegalargumentexception.objectinputstream");
  53 
  54         }
  55         this.loader = loader;
  56     }
  57 
  58     /**




  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 /*
  26  * COPYRIGHT goes here
  27  */
  28 
  29 package sun.applet;
  30 
  31 import java.io.*;
  32 import java.lang.reflect.Array;
  33 
  34 /**
  35  * This subclass of ObjectInputStream delegates loading of classes to
  36  * an existing ClassLoader.
  37  *
  38  * @deprecated The Applet API is deprecated. See the
  39  * <a href="../../java/applet/package-summary.html"> java.applet package
  40  * documentation</a> for further information.
  41  */
  42 @Deprecated(since = "9")
  43 class AppletObjectInputStream extends ObjectInputStream
  44 {
  45     private AppletClassLoader loader;
  46 
  47     /**
  48      * Loader must be non-null;
  49      */
  50 
  51     public AppletObjectInputStream(InputStream in, AppletClassLoader loader)
  52             throws IOException, StreamCorruptedException {
  53 
  54         super(in);
  55         if (loader == null) {
  56             throw new AppletIllegalArgumentException("appletillegalargumentexception.objectinputstream");
  57 
  58         }
  59         this.loader = loader;
  60     }
  61 
  62     /**


< prev index next >