Sams Teach Yourself Java 2 in 24 Hours

Sams Teach Yourself Java 2 in 24 Hours

By Rogers Cadenhead

Summary

During this hour, you worked with input streams and output streams that wrote bytes, the simplest way to represent data over a stream.

There are many more classes in the java.io package to work with streams in other ways. There's also a package of classes called java.net that enables you to read and write streams over an Internet connection.

Byte streams can be adapted to many uses, because you can easily convert bytes into other data types, such as integers, characters, and strings.

The first project of this hour, the ReadID3 application, read bytes from a stream and converted them into a string, since it was easier to read the ID3 data in this format from a song such as "Everlong" by the Foo Fighters off the album The Colour and the Shape.

Have I mentioned yet that you should buy the album?

Share ThisShare This

Informit Network