public class ReadResultPacketFactory extends Object
Modifier and Type | Field and Description |
---|---|
static byte |
EOF |
static byte |
ERROR |
static byte |
LOCALINFILE |
static byte |
OK |
Modifier and Type | Method and Description |
---|---|
static AbstractResultPacket |
createResultPacket(ByteBuffer byteBuffer)
Initialize a result stream according to first stream byte.
|
static AbstractResultPacket |
createResultPacket(ReadPacketFetcher packetFetcher)
Initialize a result stream according to first stream byte.
|
public static final byte ERROR
public static final byte OK
public static final byte EOF
public static final byte LOCALINFILE
public static AbstractResultPacket createResultPacket(ReadPacketFetcher packetFetcher) throws IOException
packetFetcher
- stream fetcherIOException
- in case of an incorrect ResultSetPacketpublic static AbstractResultPacket createResultPacket(ByteBuffer byteBuffer) throws IOException
byteBuffer
- stream fetcherIOException
- in case of an incorrect ResultSetPacketCopyright © 2016. All rights reserved.