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

Java Object Serialization Specification: 6 - Object Serialization Stream Protocol - JDK 5 Documentation v1.4.1, Java 2 SDK 英文文档

CONTENTS | PREV | NEXT Java Object Serialization Specification


6.4 Grammar for the Stream Format

The table below contains the grammar for the stream format. Nonterminal symbols are shown in italics. Terminal symbols in a fixed width font. Definitions of nonterminals are followed by a ":". The definition is followed by one or more alternatives, each on a separate line. The following table describes the notation:

Notation
Meaning

(datatype)

This token has the data type specified, such as byte.

token[n]

A predefined number of occurrences of the token, that is an array.

x0001

A literal value expressed in hexadecimal. The number of hex digits reflects the size of the value.

<xxx>

A value read from the stream used to indicate the length of an array.

Note that the symbol (long-utf) is used to designate a string written in "long" UTF format. For details, refer to Section 6.2, "Stream Elements".



CONTENTS | PREV | NEXT
Copyright © 1997-2001 Sun Microsystems, Inc. All Rights Reserved.