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 
RITSEC - Global Campus Copyright ?1999 RITSEC- Middlesex University. All rights reserved. webmaster@globalcampus.com.eg |