public class InputDriver
extends java.lang.Object
| Constructor and Description |
|---|
InputDriver(java.lang.String path,
boolean header)
Constructs a InputDriver.
|
| Modifier and Type | Method and Description |
|---|---|
protected SimplePacket |
getNextPacket()
Do not use this method.
|
protected boolean |
resendMissingPacket(int seq)
Do not use this method.
|
protected boolean |
resendPacket(SimplePacket pkt)
Do not use this method.
|
protected boolean |
validFile(PacketLinkedList<SimplePacket> list)
Do not use this method.
|
protected boolean |
validHeader(SimplePacket p)
Do not use this method.
|
public InputDriver(java.lang.String path,
boolean header)
throws java.io.IOException
path - the file path for generating the input queueheader - java.io.IOExceptionprotected SimplePacket getNextPacket()
Receiver.askForNextPacket() instead.protected boolean resendPacket(SimplePacket pkt)
Receiver.askForRetransmit(SimplePacket) instead.java.lang.IllegalArgumentException - when the requested packet is null or it has invalid sequence
numberprotected boolean resendMissingPacket(int seq)
Receiver.askForMissingPacket(int)
instead.java.lang.IllegalArgumentException - when seq is negativejava.lang.RuntimeException - when requesting End of Streaming Notification Packet while
receiving queue is not emptyprotected boolean validFile(PacketLinkedList<SimplePacket> list)
Receiver.validImageContent() instead.list - the list bufferprotected boolean validHeader(SimplePacket p)
Receiver.validImageHeader() instead.p - the header packet