public static class DataLine.Info extends Line.Info
Constructor and Description |
---|
DataLine.Info(Class<?> klass,
AudioFormat fmt)
Create a new Info given the line's class and a supported
audio format.
|
DataLine.Info(Class<?> klass,
AudioFormat[] fmts,
int minSize,
int maxSize)
Create a new Info given the line's class, the supported audio formats,
the minimum buffer size, and the maximum buffer size.
|
DataLine.Info(Class<?> klass,
AudioFormat fmt,
int size)
Create a new Info given the line's class, a supported
audio format, and a buffer size.
|
Modifier and Type | Method and Description |
---|---|
AudioFormat[] |
getFormats()
Return the supported audio formats.
|
int |
getMaxBufferSize()
Return the maximum buffer size.
|
int |
getMinBufferSize()
Return the minimum buffer size.
|
boolean |
isFormatSupported(AudioFormat fmt)
Return true if the indicated audio format is supported by this
Info, false otherwise.
|
boolean |
matches(Line.Info o)
Return true if this Info matches another Info object.
|
String |
toString()
Return a description of this Info object.
|
getLineClass
public DataLine.Info(Class<?> klass, AudioFormat fmt)
klass
- the class of the linefmt
- the supported formatpublic DataLine.Info(Class<?> klass, AudioFormat[] fmts, int minSize, int maxSize)
klass
- the class of the lineefmts
- the supported audio formatsminSize
- the minimum buffer sizemaxSize
- the maximum buffer sizepublic DataLine.Info(Class<?> klass, AudioFormat fmt, int size)
klass
- the class of the linefmt
- the supported formatsize
- the buffer sizepublic AudioFormat[] getFormats()
public int getMaxBufferSize()
public int getMinBufferSize()
public boolean isFormatSupported(AudioFormat fmt)
fmt
- the audio formatpublic String toString()
toString
in class Line.Info
Object.getClass()
,
Object.hashCode()
,
Class.getName()
,
Integer.toHexString(int)