February 2014
Beginner
1248 pages
62h 25m
English
• Java views each file as a sequential stream of bytes (p. 645).
• Every operating system provides a mechanism to determine the end of a file, such as an end-of-file marker (p. 645) or a count of the total bytes in the file.
• Byte-based streams (p. 646) represent data in binary format.
• Character-based streams (p. 646) represent data as sequences of characters.
• Files created using byte-based streams are binary files (p. 646). Files created using character-based streams are text files (p. 646). Text files can be read by text editors, whereas binary files are read by a program that converts the data to a human-readable format.
• Java also can associate streams with different devices. Three stream objects are ...
Read now
Unlock full access