您的位置:寻梦网首页编程乐园Java天地Core JavaJava Lecture Notes

Introduction

Content

Apply

Reflect

Extend

previous.gif
 (3087 bytes)

next.gif
 (2959 bytes)


Content Index

Content Page # 26

Other file ‘stream’ models

As well as the ‘byte stream’, Java supports other models of a file which are extensions of the ‘byte stream’ concept.

  • Data stream: sees the file of a stream of variable values (e.g., double, int)

  • Object stream: sees the file as a stream of objects

The data stream approach is useful for storing the values of Java variables, particularly arrays, in a file. An object stream is useful for storing the states of objects between uses of a program.

Back to top

basicline.gif (169 bytes)

RITSEC - Global Campus
Copyright ?1999 RITSEC- Middlesex University. All rights reserved.
webmaster@globalcampus.com.eg