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() |
RawPacket |
getRawPacket() |
ByteBuffer |
getReusableBuffer()
Get buffer without stream sequence information.
|
RawPacket |
getReusableRawPacket() |
void |
skipNextPacket()
Skip next stream.
|
public static final int AVOID_CREATE_BUFFER_LENGTH
public ReadPacketFetcher(InputStream is)
public RawPacket getRawPacket() throws IOException
IOExceptionpublic ByteBuffer getReusableBuffer() throws IOException
IOException - if anypublic void skipNextPacket()
throws IOException
IOException - if connection errors occur.public RawPacket getReusableRawPacket() throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionCopyright © 2016. All rights reserved.