src/share/classes/java/io/ObjectStreamConstants.java

Print this page
rev 10048 : 8044740: Convert all JDK versions used in @since tag to 1.n[.n] in jdk repo
Reviewed-by:


  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  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 package java.io;
  27 
  28 /**
  29  * Constants written into the Object Serialization Stream.
  30  *
  31  * @author  unascribed
  32  * @since JDK 1.1
  33  */
  34 public interface ObjectStreamConstants {
  35 
  36     /**
  37      * Magic number that is written to the stream header.
  38      */
  39     final static short STREAM_MAGIC = (short)0xaced;
  40 
  41     /**
  42      * Version number that is written to the stream header.
  43      */
  44     final static short STREAM_VERSION = 5;
  45 
  46     /* Each item in the stream is preceded by a tag
  47      */
  48 
  49     /**
  50      * First tag value.
  51      */
  52     final static byte TC_BASE = 0x70;




  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  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 package java.io;
  27 
  28 /**
  29  * Constants written into the Object Serialization Stream.
  30  *
  31  * @author  unascribed
  32  * @since 1.1
  33  */
  34 public interface ObjectStreamConstants {
  35 
  36     /**
  37      * Magic number that is written to the stream header.
  38      */
  39     final static short STREAM_MAGIC = (short)0xaced;
  40 
  41     /**
  42      * Version number that is written to the stream header.
  43      */
  44     final static short STREAM_VERSION = 5;
  45 
  46     /* Each item in the stream is preceded by a tag
  47      */
  48 
  49     /**
  50      * First tag value.
  51      */
  52     final static byte TC_BASE = 0x70;