javax.sound.sampled
public static class: LineEvent.Type [javadoc |
source]
java.lang.Object
javax.sound.sampled.LineEvent$Type
The LineEvent.Type inner class identifies what kind of event occurred on a line.
Static instances are provided for the common types (OPEN, CLOSE, START, and STOP).
Also see:
- LineEvent#getType()
| Field Summary |
|---|
| public static final LineEvent.Type | OPEN | A type of event that is sent when a line opens, reserving system
resources for itself. |
| public static final LineEvent.Type | CLOSE | A type of event that is sent when a line closes, freeing the system
resources it had obtained when it was opened. |
| public static final LineEvent.Type | START | A type of event that is sent when a line begins to engage in active
input or output of audio data in response to a
start request.Also see:
- STOP
- DataLine#start
|
| public static final LineEvent.Type | STOP | A type of event that is sent when a line ceases active input or output
of audio data in response to a stop request,
or because the end of media has been reached.Also see:
- START
- DataLine#stop
|
| Constructor: |
protected Type(String name) {
this.name = name;
}
Constructs a new event type. Parameters:
name - name of the type
|
| Methods from java.lang.Object: |
|---|
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from javax.sound.sampled.LineEvent$Type Detail: |
public final boolean equals(Object obj) {
return super.equals(obj);
}
Indicates whether the specified object is equal to this event type,
returning true if the objects are identical. |
public final int hashCode() {
return super.hashCode();
}
Finalizes the hashcode method. |
public String toString() {
return name;
}
Returns the type name as the string representation. |