File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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.
I agree. Here's the link:
subject: Using the MidiDevice interface (Java Sound API)
It's not a secret anymore!