This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.sound.sampled
class LineEvent.Type

java.lang.Object extended by javax.sound.sampled.LineEvent.Type
Enclosing class:
LineEvent

Most common way to construct:

LineEvent le = …;

LineEvent.Type type = le.getType();

Based on 6 examples


public static class LineEvent.Type
extends 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).


Field Summary
static 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 OPEN
          A type of event that is sent when a line opens, reserving system resources for itself.
static 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 javax.sound.sampled.DataLine.start request.
static 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 javax.sound.sampled.DataLine.stop request, or because the end of media has been reached.
 
Constructor Summary
protected

          Constructs a new event type.
 
Method Summary
 boolean

          Indicates whether the specified object is equal to this event type, returning true if the objects are identical.
 int

          Finalizes the hashcode method.
 String

          Returns the type name as the string representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLOSE

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.

OPEN

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

START

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 {@link DataLine#start start} request.

STOP

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 {@link DataLine#stop stop} request, or because the end of media has been reached.
Constructor Detail

LineEvent.Type

protected LineEvent.Type(String name)
Constructs a new event type.

Parameters:
name - name of the type
Method Detail

equals

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

Overrides:
equals in class Object
Parameters:
obj - the reference object with which to compare
Returns:
true if this event type is the same as obj; false otherwise

hashCode

public final int hashCode()
Finalizes the hashcode method.

Overrides:
hashCode in class Object

toString

public String toString()
Returns the type name as the string representation.

Overrides:
toString in class Object


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.