aspose file tools
The moose likes Beginning Java and the fly likes Using the MidiDevice interface (Java Sound API) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic

Using the MidiDevice interface (Java Sound API)

Ravaa Bal
Ranch Hand

Joined: Apr 15, 2009
Posts: 31
Hi all, I'm trying to understand interfaces in Java so hope someone can help.

I have a class which is implementing the MidiDevice interface (

There is a method in there that I need to declare called isOpen(). The thing is I'm not sure how I would check if the device 'is open'. These are the lines I'm thinking along:

Is this correct? If not, what kind of thing would I need to do for this method?

Thank you.
jQuery in Action, 2nd edition
subject: Using the MidiDevice interface (Java Sound API)