public class SegmentedMemBuffer extends Object
ArrayList or ByteArrayOutputStream
as they go from small to large.| Constructor and Description |
|---|
SegmentedMemBuffer() |
SegmentedMemBuffer(int chunk) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isOpen() |
long |
length() |
void |
open() |
int |
read(long posn,
byte[] b) |
int |
read(long posn,
byte[] b,
int start,
int length) |
int |
read(long posn,
ByteBuffer bb) |
void |
sync() |
void |
truncate(long length) |
void |
write(long posn,
byte[] b) |
void |
write(long posn,
byte[] b,
int start,
int length) |
void |
write(long posn,
ByteBuffer bb) |
public SegmentedMemBuffer()
public SegmentedMemBuffer(int chunk)
public void open()
public boolean isOpen()
public int read(long posn,
ByteBuffer bb)
public int read(long posn,
byte[] b)
public int read(long posn,
byte[] b,
int start,
int length)
public void write(long posn,
ByteBuffer bb)
public void write(long posn,
byte[] b)
public void write(long posn,
byte[] b,
int start,
int length)
public void truncate(long length)
public void sync()
public void close()
public long length()
Licensed under the Apache License, Version 2.0