TIFF Fax option byte aligned now constructor parameter. Made all option fields final.

This commit is contained in:
Harald Kuhr
2018-01-17 13:58:55 +01:00
parent 6936e7cbb2
commit b3b06dff4a
2 changed files with 50 additions and 24 deletions
@@ -272,8 +272,7 @@ public class CCITTFaxDecoderStreamTest {
@Test
public void testDecodeType4ByteAligned() throws IOException {
CCITTFaxDecoderStream stream = new CCITTFaxDecoderStream(new ByteArrayInputStream(DATA_G4_ALIGNED), 6,
TIFFExtension.COMPRESSION_CCITT_T6, 1, 0L);
stream.setOptionByteAligned(true);
TIFFExtension.COMPRESSION_CCITT_T6, 1, 0L, true);
byte[] imageData = ((DataBufferByte) image.getData().getDataBuffer()).getData();
byte[] bytes = new byte[imageData.length];