public class ImageDriver
extends java.lang.Object
| Constructor and Description |
|---|
ImageDriver(InputDriver input)
Creates a ImageDriver
|
| Modifier and Type | Method and Description |
|---|---|
void |
openImage(PacketLinkedList<SimplePacket> list)
Opens the image file by merging the content in the list.
|
public ImageDriver(InputDriver input)
input - the InputDriver needed for validationpublic void openImage(PacketLinkedList<SimplePacket> list) throws BrokenImageException
list - the list with correct order of packetsBrokenImageException - when the header or body of the image is brokenjava.lang.IllegalArgumentException - when list is null