Package org.eclipse.birt.core.archive
Class RAStreamBuffer
java.lang.Object
org.eclipse.birt.core.archive.RAStreamBuffer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Write the data in the buffer to the underlying fileint
long
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
-
Constructor Details
-
RAStreamBuffer
-
-
Method Details
-
resetBuffer
Set the buffer to a different offset in the underlying file. Read the data already written into the file.- Parameters:
offset
-- Throws:
IOException
-
getOffset
public long getOffset() -
setBufCur
public void setBufCur(int bufCur) -
getBufCur
public int getBufCur() -
flushBuffer
Write the data in the buffer to the underlying file- Throws:
IOException
-
write
public 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- Parameters:
b
-off
-len
-- Returns:
- number of bytes has been written to the interal buffer
-