Class DirectTcpPacketReader<D extends PacketData<?>>
java.lang.Object
com.hierynomus.smbj.transport.PacketReader<D>
com.hierynomus.smbj.transport.tcp.direct.DirectTcpPacketReader<D>
- All Implemented Interfaces:
Runnable
-
Field Summary
FieldsFields inherited from class PacketReader
in -
Constructor Summary
ConstructorsConstructorDescriptionDirectTcpPacketReader(String host, InputStream in, PacketFactory<D> packetFactory, PacketReceiver<D> handler) -
Method Summary
Modifier and TypeMethodDescriptionprotected DdoRead()Read the actual SMB2 Packet from theInputStreamprivate voidreadFully(byte[] buffer) private DreadPacket(int packetLength) private intMethods inherited from class PacketReader
run, start, stop
-
Field Details
-
packetFactory
-
-
Constructor Details
-
DirectTcpPacketReader
public DirectTcpPacketReader(String host, InputStream in, PacketFactory<D> packetFactory, PacketReceiver<D> handler)
-
-
Method Details
-
readPacket
- Throws:
IOExceptionBuffer.BufferException
-
doRead
Description copied from class:PacketReaderRead the actual SMB2 Packet from theInputStream- Specified by:
doReadin classPacketReader<D extends PacketData<?>>- Returns:
- the read SMB2Packet
- Throws:
TransportException
-
readTcpHeader
- Throws:
IOExceptionBuffer.BufferException
-
readFully
- Throws:
IOException
-