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
IOException
public ByteBuffer getReusableBuffer() throws IOException
IOException
- if anypublic void skipNextPacket() throws IOException
IOException
- if connection errors occur.public RawPacket getReusableRawPacket() throws IOException
IOException
public void close() throws IOException
IOException
Copyright © 2016. All rights reserved.