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