Spec-Zone .ru
спецификации, руководства, описания, API
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-1999 Sun Microsystems, Inc. All Rights Reserved.