public abstract class PacketReader<P extends Packet<P,?>>
extends java.lang.Object
implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
protected java.io.InputStream |
in |
| Constructor and Description |
|---|
PacketReader(java.io.InputStream in,
PacketReceiver<P> handler) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract P |
doRead()
Read the actual SMB2 Packet from the
InputStream |
void |
run() |
void |
stop() |
public PacketReader(java.io.InputStream in,
PacketReceiver<P> handler)
public void run()
run in interface java.lang.Runnablepublic void stop()
protected abstract P doRead() throws TransportException
InputStreamTransportException