Q&A

Q1: The method getSequence( InputStream ) is mentioned in this chapter. What is an input stream, and how are they used with sound files?
A1: Input streams are objects that retrieve data as it is being sent from another source. The source can be a wide range of things capable of producing data—files, serial ports, servers, or even objects in the same program. You work with streams extensively on Day 17, "Handling Data Through Java Streams. "
Q2: What other things are possible in JavaSound, in addition to what's presented here?
A2: JavaSound is a set of packages that rival Swing in complexity, and many of the classes involve sophisticated stream- and exception-handling techniques that will be covered next week. You can learn more ...

Get Sams Teach Yourself Java 2 in 21 Days, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.