test/jdk/java/io/Serializable/subclass/AbstractObjectInputStream.java
changeset 58565 baa5969ecf34
parent 47216 71c04702a3d5
equal deleted inserted replaced
58564:218a1a642c6f 58565:baa5969ecf34
     1 /*
     1 /*
     2  * Copyright (c) 1998, 2004, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   251      *            <STRONG>ctorClass</STRONG> is not accessible from
   251      *            <STRONG>ctorClass</STRONG> is not accessible from
   252      *            <STRONG>ofClass</STRONG>.
   252      *            <STRONG>ofClass</STRONG>.
   253      * @exception InstantiationException  TBD.
   253      * @exception InstantiationException  TBD.
   254      */
   254      */
   255     protected final native Object
   255     protected final native Object
   256         allocateNewObject(Class ofClass, Class ctorClass)
   256         allocateNewObject(Class<?> ofClass, Class<?> ctorClass)
   257         throws InstantiationException, IllegalAccessException;
   257         throws InstantiationException, IllegalAccessException;
   258 
   258 
   259     /**
   259     /**
   260      * Enable allocation for subclass reimplementing serialization.<p>
   260      * Enable allocation for subclass reimplementing serialization.<p>
   261      *
   261      *
   269      *
   269      *
   270      * @exception IllegalAccessException  TBD.
   270      * @exception IllegalAccessException  TBD.
   271      * @exception InstantiationException  TBD.
   271      * @exception InstantiationException  TBD.
   272      */
   272      */
   273     protected final native Object
   273     protected final native Object
   274         allocateNewArray(Class componentClass, int length)
   274         allocateNewArray(Class<?> componentClass, int length)
   275         throws InstantiationException, IllegalAccessException;
   275         throws InstantiationException, IllegalAccessException;
   276 
   276 
   277     /**
   277     /**
   278      * Reads the Serializable fields from the stream into a buffer
   278      * Reads the Serializable fields from the stream into a buffer
   279      * and makes the fields available by name.
   279      * and makes the fields available by name.
   315     public abstract String readUTF() throws IOException;
   315     public abstract String readUTF() throws IOException;
   316     public abstract int available() throws IOException;
   316     public abstract int available() throws IOException;
   317     public abstract int skipBytes(int len) throws IOException;
   317     public abstract int skipBytes(int len) throws IOException;
   318 
   318 
   319     /* @deprecated */
   319     /* @deprecated */
       
   320     @SuppressWarnings("deprecation")
   320     public abstract String readLine() throws IOException;
   321     public abstract String readLine() throws IOException;
   321 };
   322 };