| Modifier | Constructor | Description |
|---|---|---|
private |
JPEGMarkerReader() |
Private constructor to prevent instantiation.
|
| Modifier and Type | Method | Description |
|---|---|---|
static void |
readHuffmanTables(DataInput in,
JPEGData jpegData,
int length) |
|
static void |
readQuantizationTables(DataInput in,
JPEGData jpegData,
int length) |
Read quantization tables from a DQT marker.
|
static void |
readStartOfFrame(DataInput in,
JPEGData jpegData,
int marker,
int length) |
|
static void |
readStartOfScan(DataInput in,
JPEGData jpegData,
int length) |
Read an SOS (start of scan) marker.
|
private JPEGMarkerReader()
public static void readHuffmanTables(DataInput in, JPEGData jpegData, int length) throws InvalidFileStructureException, IOException
public static void readQuantizationTables(DataInput in, JPEGData jpegData, int length) throws InvalidFileStructureException, IOException
jpegData - data object which will store the table(s)length - length of markerInvalidFileStructureException - if the DQT contains invalid dataIOException - on reading errorspublic static void readStartOfFrame(DataInput in, JPEGData jpegData, int marker, int length) throws InvalidFileStructureException, IOException, UnsupportedTypeException
public static void readStartOfScan(DataInput in, JPEGData jpegData, int length) throws InvalidFileStructureException, IOException, UnsupportedTypeException
in - source to read marker information fromjpegData - JPEGData object to update with information from the markerlength - size of marker in bytesInvalidFileStructureException - if encountered data does not follow the JPEG standardIOException - on I/O errorsUnsupportedTypeException - if encountered data is valid but unsupported by this package