public class ReadPacketFetcher extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
AVOID_CREATE_BUFFER_LENGTH |
| Constructor and Description |
|---|
ReadPacketFetcher(InputStream is) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getLastPacketSeq() |
Buffer |
getPacket()
Get buffer packet.
|
Buffer |
getReusableBuffer()
Get buffer with shared array.
|
public static final int AVOID_CREATE_BUFFER_LENGTH
public ReadPacketFetcher(InputStream is)
public Buffer getPacket() throws IOException
IOException - if anypublic Buffer getReusableBuffer() throws IOException
IOException - if anypublic int getLastPacketSeq()
public void close()
throws IOException
IOExceptionCopyright © 2016. All rights reserved.