|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.sound.sampled.Line.Info
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.
Line.getLineInfo()
,
Mixer.getSourceLineInfo()
,
Mixer.getTargetLineInfo()
,
Mixer.getLine(Line.Info)
,
Mixer.getSourceLineInfo(Line.Info)
,
Mixer.getTargetLineInfo(Line.Info)
,
Mixer.isLineSupported(Line.Info)
,
AudioSystem.getLine(Line.Info)
,
AudioSystem.getSourceLineInfo(Line.Info)
,
AudioSystem.getTargetLineInfo(Line.Info)
,
AudioSystem.isLineSupported(Line.Info)
Constructor Summary | |
Line.Info(Class lineClass)
Constructs an info object that describes a line of the specified class. |
Method Summary | |
Class |
getLineClass()
Obtains the class of the line that this Line.Info object describes. |
boolean |
matches(Line.Info info)
Indicates whether the specified info object matches this one. |
String |
toString()
Obtains a textual description of the line info. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Line.Info(Class lineClass)
lineClass
- the class of the line that the new Line.Info object describesMethod Detail |
public Class getLineClass()
public boolean matches(Line.Info info)
info
- the info object which is being compared to this onetrue
if the specified object matches this one,
false
otherwisepublic String toString()
toString
in class Object
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.