On this page
Class Line.Info
- Direct Known Subclasses:
DataLine.Info,Port.Info
- Enclosing interface:
- Line
public static class Line.Info extends Object
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:
-
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
Method Summary
Constructor Details
Info
public Info(Class<?> lineClass)
- Parameters:
lineClass- the class of the line that the newLine.Infoobject describes
Method Details
getLineClass
public Class<?> getLineClass()
Line.Info object describes.
- Returns:
- the described line's class
matches
public boolean matches(Line.Info info)
- Parameters:
info- the info object which is being compared to this one- Returns:
trueif the specified object matches this one,falseotherwise
toString
public String toString()
© 1993, 2021, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/javax/sound/sampled/Line.Info.html