Class Line.Info
java.lang.Object
javax.sound.sampled.Line.Info
- Direct Known Subclasses:
DataLine.Info, Port.Info
- Enclosing interface:
Line
A
Line.Info object contains information about a line. The only
information provided by Line.Info itself is the Java class of the
line. A subclass of Line.Info adds other kinds of information
about the line. This additional information depends on which Line
subinterface is implemented by the kind of line that the
Line.Info subclass describes.
A Line.Info can be retrieved using various methods of the
Line, Mixer, and AudioSystem interfaces. Other
such methods let you pass a Line.Info as an argument, to learn
whether lines matching the specified configuration are available and to
obtain them.
- Since:
- 1.3
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods declared in class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()Answers a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver.booleanCompares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.protected voidfinalize()Deprecated, for removal: This API element is subject to removal in a future version.May cause performance issues, deadlocks and hangs.getClass()Answers the unique instance of java.lang.Class which represents the class of the receiver.inthashCode()Answers an integer hash code for the receiver.final voidnotify()Causes one thread which iswaiting on the receiver to be made ready to run.final voidCauses all threads which arewaiting on the receiver to be made ready to run.final voidwait()Causes the thread which sent this message to be made not ready to run pending some change in the receiver (as indicated bynotifyornotifyAll).final voidwait(long time) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.final voidwait(long time, int frac) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.
-
Constructor Details
-
Info
Constructs an info object that describes a line of the specified class. This constructor is typically used by an application to describe a desired line.- Parameters:
lineClass- the class of the line that the newLine.Infoobject describes
-
-
Method Details
-
getLineClass
Obtains the class of the line that thisLine.Infoobject describes.- Returns:
- the described line's class
-
matches
Indicates whether the specified info object matches this one. To match, the specified object must be identical to or a special case of this one. The specified info object must be either an instance of the same class as this one, or an instance of a sub-type of this one. In addition, the attributes of the specified object must be compatible with the capabilities of this one. Specifically, the routing configuration for the specified info object must be compatible with that of this one. Subclasses may add other criteria to determine whether the two objects match.- Parameters:
info- the info object which is being compared to this one- Returns:
trueif the specified object matches this one,falseotherwise
-
toString
-