javax.sound.sampled
Class LineEvent.Type

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.sound.sampled.LineEvent.Type
Enclosing class:
LineEvent sample code for javax.sound.sampled.LineEvent definition code for javax.sound.sampled.LineEvent

public static class LineEvent.Type
extends Object sample code for java.lang.Object definition code for java.lang.Object

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).

See Also:
LineEvent.getType() sample code for javax.sound.sampled.LineEvent.getType() definition code for javax.sound.sampled.LineEvent.getType()

Field Summary
static LineEvent.Type sample code for javax.sound.sampled.LineEvent.Type definition code for javax.sound.sampled.LineEvent.Type CLOSE sample code for javax.sound.sampled.LineEvent.Type.CLOSE definition code for javax.sound.sampled.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.
static LineEvent.Type sample code for javax.sound.sampled.LineEvent.Type definition code for javax.sound.sampled.LineEvent.Type OPEN sample code for javax.sound.sampled.LineEvent.Type.OPEN definition code for javax.sound.sampled.LineEvent.Type.OPEN
          A type of event that is sent when a line opens, reserving system resources for itself.
static LineEvent.Type sample code for javax.sound.sampled.LineEvent.Type definition code for javax.sound.sampled.LineEvent.Type START sample code for javax.sound.sampled.LineEvent.Type.START definition code for javax.sound.sampled.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 sample code for javax.sound.sampled.DataLine.start() definition code for javax.sound.sampled.DataLine.start() request.
static LineEvent.Type sample code for javax.sound.sampled.LineEvent.Type definition code for javax.sound.sampled.LineEvent.Type STOP sample code for javax.sound.sampled.LineEvent.Type.STOP definition code for javax.sound.sampled.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 sample code for javax.sound.sampled.DataLine.stop() definition code for javax.sound.sampled.DataLine.stop() request, or because the end of media has been reached.
 
Constructor Summary
protected LineEvent.Type sample code for javax.sound.sampled.LineEvent.Type.LineEvent.Type(java.lang.String) definition code for javax.sound.sampled.LineEvent.Type.LineEvent.Type(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  name)
          Constructs a new event type.
 
Method Summary
 boolean equals sample code for javax.sound.sampled.LineEvent.Type.equals(java.lang.Object) definition code for javax.sound.sampled.LineEvent.Type.equals(java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  obj)
          Indicates whether the specified object is equal to this event type, returning true if the objects are identical.
 int hashCode sample code for javax.sound.sampled.LineEvent.Type.hashCode() definition code for javax.sound.sampled.LineEvent.Type.hashCode() ()
          Finalizes the hashcode method.
 String sample code for java.lang.String definition code for java.lang.String toString sample code for javax.sound.sampled.LineEvent.Type.toString() definition code for javax.sound.sampled.LineEvent.Type.toString() ()
          Returns the type name as the string representation.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

OPEN sample code for javax.sound.sampled.LineEvent.Type.OPEN

public static final LineEvent.Type sample code for javax.sound.sampled.LineEvent.Type definition code for javax.sound.sampled.LineEvent.Type  OPEN
A type of event that is sent when a line opens, reserving system resources for itself.

See Also:
CLOSE sample code for javax.sound.sampled.LineEvent.Type.CLOSE definition code for javax.sound.sampled.LineEvent.Type.CLOSE , Line.open() sample code for javax.sound.sampled.Line.open() definition code for javax.sound.sampled.Line.open()

CLOSE sample code for javax.sound.sampled.LineEvent.Type.CLOSE

public static final LineEvent.Type sample code for javax.sound.sampled.LineEvent.Type definition code for javax.sound.sampled.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.

See Also:
OPEN sample code for javax.sound.sampled.LineEvent.Type.OPEN definition code for javax.sound.sampled.LineEvent.Type.OPEN , Line.close() sample code for javax.sound.sampled.Line.close() definition code for javax.sound.sampled.Line.close()

START sample code for javax.sound.sampled.LineEvent.Type.START

public static final LineEvent.Type sample code for javax.sound.sampled.LineEvent.Type definition code for javax.sound.sampled.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 sample code for javax.sound.sampled.DataLine.start() definition code for javax.sound.sampled.DataLine.start() request.

See Also:
STOP sample code for javax.sound.sampled.LineEvent.Type.STOP definition code for javax.sound.sampled.LineEvent.Type.STOP , DataLine.start() sample code for javax.sound.sampled.DataLine.start() definition code for javax.sound.sampled.DataLine.start()

STOP sample code for javax.sound.sampled.LineEvent.Type.STOP

public static final LineEvent.Type sample code for javax.sound.sampled.LineEvent.Type definition code for javax.sound.sampled.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 sample code for javax.sound.sampled.DataLine.stop() definition code for javax.sound.sampled.DataLine.stop() request, or because the end of media has been reached.

See Also:
START sample code for javax.sound.sampled.LineEvent.Type.START definition code for javax.sound.sampled.LineEvent.Type.START , DataLine.stop() sample code for javax.sound.sampled.DataLine.stop() definition code for javax.sound.sampled.DataLine.stop()
Constructor Detail

LineEvent.Type sample code for javax.sound.sampled.LineEvent.Type(java.lang.String) definition code for javax.sound.sampled.LineEvent.Type(java.lang.String)

protected LineEvent.Type(String sample code for java.lang.String definition code for java.lang.String  name)
Constructs a new event type.

Parameters:
name - name of the type
Method Detail

equals sample code for javax.sound.sampled.LineEvent.Type.equals(java.lang.Object) definition code for javax.sound.sampled.LineEvent.Type.equals(java.lang.Object)

public final boolean equals(Object sample code for java.lang.Object definition code for java.lang.Object  obj)
Indicates whether the specified object is equal to this event type, returning true if the objects are identical.

Overrides:
equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) in class Object sample code for java.lang.Object definition code for java.lang.Object
Parameters:
obj - the reference object with which to compare
Returns:
true if this event type is the same as obj; false otherwise
See Also:
Object.hashCode() sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable

hashCode sample code for javax.sound.sampled.LineEvent.Type.hashCode() definition code for javax.sound.sampled.LineEvent.Type.hashCode()

public final int hashCode()
Finalizes the hashcode method.

Overrides:
hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
a hash code value for this object.
See Also:
Object.equals(java.lang.Object) sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable

toString sample code for javax.sound.sampled.LineEvent.Type.toString() definition code for javax.sound.sampled.LineEvent.Type.toString()

public String sample code for java.lang.String definition code for java.lang.String  toString()
Returns the type name as the string representation.

Overrides:
toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
a string representation of the object.