JavaDeploy
SiteMap
Readers Writers
Java Streams
Java Programming
Java Language
Filter Streams
«Prev
Next»
Java Streams
Stream Basics
Stream Input Definition
Roller Coaster Analogy
Input Streaming Data
System in-out
Additional Sources for I/O Streams
Java Stream Classes
I/O Stream Conclusion
Data Stream Reading
Reading Data from Streams
Efficient byte array Buffer
Counting available Bytes
Closing Stream Data
Writing Data Streams
Writing Data to Stream
Java Write Method
Java System.out
Java Write Byte
Java IO Flush
Java File Streams
Using Filestream
Character Mode DumpsFile
WritingData OutputStreams Conclusion
Filtering Streams
Chaining Streams
Marking Resetting Java Streams
Marking resetting Methods
Treating Arrays as Streams
Streaming Data between Threads
Dump File using Java Streams - Exercise
Expand the program you developed so that it also dumps a file as floating point numbers, double-precision floating point numbers,
shorts
,
ints
, and
longs
. You will need to add command line switches for each of these possibilities. For example, use
-i
as the command line switch for
int
format. Print each number on a separate line. Your finished program will be used as the starting point for the course project in the next course of the
Networking with Java
series,
Java Readers and Writers.
Paste the source code below and click the
Submit
button when you are ready to submit this exercise.