src/share/classes/javax/sound/sampled/Line.java

Print this page




 225      * @author Kara Kytle
 226      *
 227      * @see Line#getLineInfo
 228      * @see Mixer#getSourceLineInfo
 229      * @see Mixer#getTargetLineInfo
 230      * @see Mixer#getLine <code>Mixer.getLine(Line.Info)</code>
 231      * @see Mixer#getSourceLineInfo(Line.Info) <code>Mixer.getSourceLineInfo(Line.Info)</code>
 232      * @see Mixer#getSourceLineInfo(Line.Info) <code>Mixer.getTargetLineInfo(Line.Info)</code>
 233      * @see Mixer#isLineSupported <code>Mixer.isLineSupported(Line.Info)</code>
 234      * @see AudioSystem#getLine <code>AudioSystem.getLine(Line.Info)</code>
 235      * @see AudioSystem#getSourceLineInfo <code>AudioSystem.getSourceLineInfo(Line.Info)</code>
 236      * @see AudioSystem#getTargetLineInfo <code>AudioSystem.getTargetLineInfo(Line.Info)</code>
 237      * @see AudioSystem#isLineSupported <code>AudioSystem.isLineSupported(Line.Info)</code>
 238      * @since 1.3
 239      */
 240     public static class Info {
 241 
 242         /**
 243          * The class of the line described by the info object.
 244          */
 245         private final Class lineClass;
 246 
 247 
 248         /**
 249          * Constructs an info object that describes a line of the specified class.
 250          * This constructor is typically used by an application to
 251          * describe a desired line.
 252          * @param lineClass the class of the line that the new Line.Info object describes
 253          */
 254         public Info(Class<?> lineClass) {
 255 
 256             if (lineClass == null) {
 257                 this.lineClass = Line.class;
 258             } else {
 259                 this.lineClass = lineClass;
 260             }
 261         }
 262 
 263 
 264 
 265         /**




 225      * @author Kara Kytle
 226      *
 227      * @see Line#getLineInfo
 228      * @see Mixer#getSourceLineInfo
 229      * @see Mixer#getTargetLineInfo
 230      * @see Mixer#getLine <code>Mixer.getLine(Line.Info)</code>
 231      * @see Mixer#getSourceLineInfo(Line.Info) <code>Mixer.getSourceLineInfo(Line.Info)</code>
 232      * @see Mixer#getSourceLineInfo(Line.Info) <code>Mixer.getTargetLineInfo(Line.Info)</code>
 233      * @see Mixer#isLineSupported <code>Mixer.isLineSupported(Line.Info)</code>
 234      * @see AudioSystem#getLine <code>AudioSystem.getLine(Line.Info)</code>
 235      * @see AudioSystem#getSourceLineInfo <code>AudioSystem.getSourceLineInfo(Line.Info)</code>
 236      * @see AudioSystem#getTargetLineInfo <code>AudioSystem.getTargetLineInfo(Line.Info)</code>
 237      * @see AudioSystem#isLineSupported <code>AudioSystem.isLineSupported(Line.Info)</code>
 238      * @since 1.3
 239      */
 240     public static class Info {
 241 
 242         /**
 243          * The class of the line described by the info object.
 244          */
 245         private final Class<?> lineClass;
 246 
 247 
 248         /**
 249          * Constructs an info object that describes a line of the specified class.
 250          * This constructor is typically used by an application to
 251          * describe a desired line.
 252          * @param lineClass the class of the line that the new Line.Info object describes
 253          */
 254         public Info(Class<?> lineClass) {
 255 
 256             if (lineClass == null) {
 257                 this.lineClass = Line.class;
 258             } else {
 259                 this.lineClass = lineClass;
 260             }
 261         }
 262 
 263 
 264 
 265         /**