public static class LineEvent.Type extends Object
LineEvent.getType()
Modifier and Type | Field and Description |
---|---|
static LineEvent.Type |
CLOSE
当一条线关闭时发送的一种事件类型,释放它打开时所获得的系统资源。
|
static LineEvent.Type |
OPEN
当一行打开时发送的一种事件类型,为自己保留系统资源。
|
static LineEvent.Type |
START
一种是发送时线开始从事活动的输入或响应一个
start 请求音频数据输出事件。
|
static LineEvent.Type |
STOP
一种是发送时,线路输入或停止积极响应一个
stop 请求输出的音频数据的事件,或是因为媒体都已结束。
|
public static final LineEvent.Type OPEN
CLOSE
,
Line.open()
public static final LineEvent.Type CLOSE
OPEN
,
Line.close()
public static final LineEvent.Type START
start
请求音频数据输出事件。
STOP
,
DataLine.start()
public static final LineEvent.Type STOP
stop
请求输出的音频数据的事件,或是因为媒体都已结束。
START
,
DataLine.stop()
protected Type(String name)
name
-类型名称
public final boolean equals(Object obj)
true
如果对象是相同的。
equals
方法重写,继承类
Object
obj
-参考对象的比较
true
如果该事件类型是
obj
相同;
false
否则
Object.hashCode()
,
HashMap
public final int hashCode()
hashCode
方法重写,继承类
Object
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.