public class RAStreamBuffer
extends java.lang.Object
Constructor and Description |
---|
RAStreamBuffer(java.io.RandomAccessFile randomFile) |
Modifier and Type | Method and Description |
---|---|
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.IOException
public long getOffset()
public void setBufCur(int bufCur)
public int getBufCur()
public void flushBuffer() throws java.io.IOException
java.io.IOException
public int write(byte[] b, int off, int len)
b
- off
- len
- Copyright © 2014 OpenText Corp. All rights reserved.