213 *
214 * @author Kara Kytle
215 * @see Line#getLineInfo()
216 * @see Mixer#getSourceLineInfo()
217 * @see Mixer#getTargetLineInfo()
218 * @see Mixer#getLine(Line.Info)
219 * @see Mixer#getSourceLineInfo(Line.Info)
220 * @see Mixer#getTargetLineInfo(Line.Info)
221 * @see Mixer#isLineSupported(Line.Info)
222 * @see AudioSystem#getLine(Line.Info)
223 * @see AudioSystem#getSourceLineInfo(Line.Info)
224 * @see AudioSystem#getTargetLineInfo(Line.Info)
225 * @see AudioSystem#isLineSupported(Line.Info)
226 * @since 1.3
227 */
228 class Info {
229
230 /**
231 * The class of the line described by the info object.
232 */
233 private final Class lineClass;
234
235 /**
236 * Constructs an info object that describes a line of the specified
237 * class. This constructor is typically used by an application to
238 * describe a desired line.
239 *
240 * @param lineClass the class of the line that the new Line.Info object
241 * describes
242 */
243 public Info(Class<?> lineClass) {
244
245 if (lineClass == null) {
246 this.lineClass = Line.class;
247 } else {
248 this.lineClass = lineClass;
249 }
250 }
251
252 /**
253 * Obtains the class of the line that this Line.Info object describes.
|
213 *
214 * @author Kara Kytle
215 * @see Line#getLineInfo()
216 * @see Mixer#getSourceLineInfo()
217 * @see Mixer#getTargetLineInfo()
218 * @see Mixer#getLine(Line.Info)
219 * @see Mixer#getSourceLineInfo(Line.Info)
220 * @see Mixer#getTargetLineInfo(Line.Info)
221 * @see Mixer#isLineSupported(Line.Info)
222 * @see AudioSystem#getLine(Line.Info)
223 * @see AudioSystem#getSourceLineInfo(Line.Info)
224 * @see AudioSystem#getTargetLineInfo(Line.Info)
225 * @see AudioSystem#isLineSupported(Line.Info)
226 * @since 1.3
227 */
228 class Info {
229
230 /**
231 * The class of the line described by the info object.
232 */
233 private final Class<?> lineClass;
234
235 /**
236 * Constructs an info object that describes a line of the specified
237 * class. This constructor is typically used by an application to
238 * describe a desired line.
239 *
240 * @param lineClass the class of the line that the new Line.Info object
241 * describes
242 */
243 public Info(Class<?> lineClass) {
244
245 if (lineClass == null) {
246 this.lineClass = Line.class;
247 } else {
248 this.lineClass = lineClass;
249 }
250 }
251
252 /**
253 * Obtains the class of the line that this Line.Info object describes.
|