| Modifier and Type | Field and Description |
|---|---|
| protected Control[] | |
| private static final Map | dispatchers
Contains event dispatcher per thread group. |
| protected final Line. | |
| private final Vector | |
| pack-priv AbstractMixer | |
| private volatile boolean |
| Access | Constructor and Description |
|---|---|
| protected | AbstractLine(Line.
the mixer with which this line is associated mixer, Control[] set of supported controls controls)Constructs a new AbstractLine. |
| Modifier and Type | Method and Description |
|---|---|
| public final void | addLineListener(LineListener listener)
Implements javax. Adds a listener to this line. |
| public abstract void | close()
Redeclares javax. Closes the line, indicating that any system resources in use by the line can be released. |
| public final Control | getControl(Control.
Implements javax. Obtains a control of the specified type, if there is any. |
| public final Control[] | Returns: control setImplements javax. Obtains the set of controls supported by the line. |
| pack-priv final EventDispatcher | |
| public final int | |
| public final Line. | getLineInfo()
Implements javax. Obtains the |
| public long | getLongFramePosition()
Return the frame position in a long value This implementation returns AudioSystem.NOT_SPECIFIED. |
| pack-priv final AbstractMixer | |
| public final boolean | isControlSupported(Control.
Implements javax. Indicates whether the line supports a control of the specified type. |
| public final boolean | isOpen()
Implements javax. Indicates whether the line is open, meaning that it has reserved system resources and is operational, although it might not currently be playing or capturing sound. |
| public abstract void | open()
Redeclares javax. Opens the line, indicating that it should acquire any required system resources and become operational. |
| public final void | removeLineListener(LineListener
listener to remove listener)Implements javax. Removes an audio listener. |
| pack-priv final void | |
| pack-priv final void |
| controls | back to summary |
|---|---|
| protected Control[] controls | |
| dispatchers | back to summary |
|---|---|
| private static final Map<ThreadGroup, EventDispatcher> dispatchers Contains event dispatcher per thread group. | |
| info | back to summary |
|---|---|
| protected final Line. | |
| listeners | back to summary |
|---|---|
| private final Vector<Object> listeners | |
| mixer | back to summary |
|---|---|
| pack-priv AbstractMixer mixer | |
| open | back to summary |
|---|---|
| private volatile boolean open | |
| AbstractLine | back to summary |
|---|---|
| protected AbstractLine(Line. Constructs a new AbstractLine.
| |
| addLineListener | back to summary |
|---|---|
| public final void addLineListener(LineListener listener) Implements javax. Doc from javax. Adds a listener to this line. Whenever the line's status changes, the
listener's
| |
| close | back to summary |
|---|---|
| public abstract void close() Redeclares javax. Doc from javax. Closes the line, indicating that any system resources in use by the line
can be released. If this operation succeeds, the line is marked closed
and a
| |
| getControl | back to summary |
|---|---|
| public final Control getControl(Control. Implements javax. Doc from javax. Obtains a control of the specified type, if there is any. Some controls may only be available when the line is open.
| |
| getControls | back to summary |
|---|---|
| public final Control[] getControls() Implements javax. Obtains the set of controls supported by the line. If no controls are supported, returns an array of length 0. | |
| getEventDispatcher | back to summary |
|---|---|
| pack-priv final EventDispatcher getEventDispatcher() | |
| getFramePosition | back to summary |
|---|---|
| public final int getFramePosition() This is an error in the API: getFramePosition should return a long value. At CD quality, the int value wraps around after 13 hours. | |
| getLineInfo | back to summary |
|---|---|
| public final Line. Implements javax. Doc from javax. Obtains the
| |
| getLongFramePosition | back to summary |
|---|---|
| public long getLongFramePosition() Return the frame position in a long value This implementation returns AudioSystem.NOT_SPECIFIED. | |
| getMixer | back to summary |
|---|---|
| pack-priv final AbstractMixer getMixer() | |
| isControlSupported | back to summary |
|---|---|
| public final boolean isControlSupported(Control. Implements javax. Doc from javax. Indicates whether the line supports a control of the specified type. Some controls may only be available when the line is open.
| |
| isOpen | back to summary |
|---|---|
| public final boolean isOpen() Implements javax. Doc from javax. Indicates whether the line is open, meaning that it has reserved system resources and is operational, although it might not currently be playing or capturing sound.
| |
| open | back to summary |
|---|---|
| public abstract void open() throws LineUnavailableException Redeclares javax. Doc from javax. Opens the line, indicating that it should acquire any required system
resources and become operational. If this operation succeeds, the line is
marked as open, and an
Note that some lines, once closed, cannot be reopened. Attempts to reopen
such a line will always result in an
Some types of lines have configurable properties that may affect resource
allocation. For example, a
This method takes no arguments, and opens the line with the current
settings. For
For
| |
| removeLineListener | back to summary |
|---|---|
| public final void removeLineListener(LineListener listener) Implements javax. Removes an audio listener.
| |
| sendEvents | back to summary |
|---|---|
| pack-priv final void sendEvents(LineEvent event) Send line events. | |
| setOpen | back to summary |
|---|---|
| pack-priv final void setOpen(boolean open) This method sets the open state and generates events if it changes. | |