public class RAStreamBuffer
extends java.lang.Object
| 构造器和说明 |
|---|
RAStreamBuffer(java.io.RandomAccessFile randomFile) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
flushBuffer()
Write the data in the buffer to the underlying file
|
int |
getBufCur() |
long |
getOffset() |
void |
resetBuffer(long offset)
Set the buffer to a different offset in the underlying file.
|
void |
setBufCur(int bufCur) |
int |
write(byte[] b,
int off,
int len)
Write the data in the b[] to the interal buffer
Can only write to the end of the interal buffer
|
public void resetBuffer(long offset)
throws java.io.IOException
offset - java.io.IOExceptionpublic long getOffset()
public void setBufCur(int bufCur)
public int getBufCur()
public void flushBuffer()
throws java.io.IOException
java.io.IOExceptionpublic int write(byte[] b,
int off,
int len)
b - off - len - Copyright © 2008 Actuate Corp. All rights reserved.