Class SMB3CompressedPacketFactory
java.lang.Object
com.hierynomus.mssmb2.SMB3CompressedPacketFactory
- All Implemented Interfaces:
PacketFactory<SMB3CompressedPacketData>
public class SMB3CompressedPacketFactory
extends Object
implements PacketFactory<SMB3CompressedPacketData>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandle(byte[] data) Checks whether this PacketFactory is able to handle the incoming raw byte data.read(byte[] data) Constructpacket dataout of the raw byte data.
-
Constructor Details
-
SMB3CompressedPacketFactory
public SMB3CompressedPacketFactory()
-
-
Method Details
-
read
Description copied from interface:PacketFactoryConstructpacket dataout of the raw byte data.- Specified by:
readin interfacePacketFactory<SMB3CompressedPacketData>- Parameters:
data- the byte array containing the full packet data- Returns:
- A newly constructed
PacketDataobject. - Throws:
Buffer.BufferExceptionIOException
-
canHandle
public boolean canHandle(byte[] data) Description copied from interface:PacketFactoryChecks whether this PacketFactory is able to handle the incoming raw byte data.- Specified by:
canHandlein interfacePacketFactory<SMB3CompressedPacketData>- Parameters:
data- the byte array containing the full packet data- Returns:
- true if the
PacketFactory.read(byte[])will result in a packet, false otherwise.
-