|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Object com.sun.media.CircularBuffer
public class CircularBuffer
CircularQueue It implements a circular FIFO queue of references to Objects.
构造方法摘要 | |
---|---|
CircularBuffer(int n)
create a queue with max number of elements |
方法摘要 | |
---|---|
boolean |
canRead()
returns true if read() would succeed |
boolean |
canWrite()
returns true if getEmptyObject() would succeed |
void |
error()
error dump |
Buffer |
getEmptyBuffer()
returns empty buffer object to put data in |
boolean |
lockedRead()
|
boolean |
lockedWrite()
|
Buffer |
peek()
Gets frame with valid buffer from the queue |
void |
print()
|
Buffer |
read()
Gets frame with valid buffer from the queue |
void |
readReport()
indicates that the latest read frame is no longer in use |
void |
reset()
reset the queue |
void |
writeReport()
indicates that latest Object returns to the queue we removed writeReport(false), since we have the mechanism in javax.media.Buffer (discard). |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
构造方法详细信息 |
---|
public CircularBuffer(int n)
n
- the max number of elements方法详细信息 |
---|
public void readReport()
public boolean canRead()
true
if read() would succeed
public boolean lockedRead()
public boolean lockedWrite()
public Buffer read()
public Buffer peek()
public void writeReport()
public Buffer getEmptyBuffer()
public boolean canWrite()
true
if getEmptyObject() would succeed
public void error()
public void print()
public void reset()
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |