Package com.hierynomus.smbj.connection
Class Connection.DelegatingSMBMessageConverter
java.lang.Object
com.hierynomus.smbj.connection.Connection.DelegatingSMBMessageConverter
- All Implemented Interfaces:
PacketFactory<SMBPacketData<?>>
- Enclosing class:
Connection
private static class Connection.DelegatingSMBMessageConverter
extends Object
implements PacketFactory<SMBPacketData<?>>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canHandle
(byte[] data) Checks whether this PacketFactory is able to handle the incoming raw byte data.read
(byte[] data) Constructpacket data
out of the raw byte data.
-
Field Details
-
packetFactories
-
-
Constructor Details
-
DelegatingSMBMessageConverter
-
-
Method Details
-
read
Description copied from interface:PacketFactory
Constructpacket data
out of the raw byte data.- Specified by:
read
in interfacePacketFactory<SMBPacketData<?>>
- Parameters:
data
- the byte array containing the full packet data- Returns:
- A newly constructed
PacketData
object. - Throws:
Buffer.BufferException
IOException
-
canHandle
public boolean canHandle(byte[] data) Description copied from interface:PacketFactory
Checks whether this PacketFactory is able to handle the incoming raw byte data.- Specified by:
canHandle
in interfacePacketFactory<SMBPacketData<?>>
- Parameters:
data
- the byte array containing the full packet data- Returns:
- true if the
PacketFactory.read(byte[])
will result in a packet, false otherwise.
-