站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JDK 5 Documentation v6.0, Java 2 SDK 英文文档

Using Serialization with a Custom Data Format - JDK 5 Documentation v6.0, Java 2 SDK 英文文档

blue bar

Serialization and Custom Data Format

blue bar

Running the Example

Complete the following procedure to compile and run the example:

  1. From yourbasedir/objectserializationexamples/CustomDataFormat, compile the file CustomDataExample.java using JDK TM 1.1 or higher:
      javac CustomDataExample.java
    
  2. Run the file you just compiled:
      java CustomDataExample
    

Two arrays are printed:

  • The first array shows the array before serialization.
  • The second array shows the array after deserialization.
blue bar

Additional Information:

Abstract
Sources
List of Examples
blue bar