public class SMB2MessageConverter extends java.lang.Object implements PacketFactory<SMB2Packet>
| Constructor and Description |
|---|
SMB2MessageConverter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(byte[] data)
Checks whether this PacketFactory is able to handle the incoming raw byte data.
|
SMB2Packet |
read(byte[] data)
Construct a packet out of the raw byte data.
|
public SMB2Packet read(byte[] data) throws Buffer.BufferException
PacketFactoryread in interface PacketFactory<SMB2Packet>data - the byte array containing the full packet dataBuffer.BufferExceptionpublic boolean canHandle(byte[] data)
PacketFactorycanHandle in interface PacketFactory<SMB2Packet>data - the byte array containing the full packet dataPacketFactory.read(byte[]) will result in a packet, false otherwise.