| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
package com.drew.imaging.tiff; |
| 22 |
|
| 23 |
import com.drew.lang.RandomAccessReader; |
| 24 |
import com.drew.lang.Rational; |
| 25 |
import com.drew.lang.annotations.NotNull; |
| 26 |
import com.drew.lang.annotations.Nullable; |
| 27 |
import com.drew.metadata.StringValue; |
| 28 |
|
| 29 |
import java.io.IOException; |
| 30 |
import java.util.Set; |
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
public interface TiffHandler |
| 39 |
{ |
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
void setTiffMarker(int marker) throws TiffProcessingException; |
| 49 |
|
| 50 |
boolean tryEnterSubIfd(int tagId); |
| 51 |
boolean hasFollowerIfd(); |
| 52 |
|
| 53 |
void endingIFD(); |
| 54 |
|
| 55 |
@Nullable |
| 56 |
Long tryCustomProcessFormat(int tagId, int formatCode, long componentCount); |
| 57 |
|
| 58 |
boolean customProcessTag(int tagOffset, |
| 59 |
@NotNull Set<Integer> processedIfdOffsets, |
| 60 |
int tiffHeaderOffset, |
| 61 |
@NotNull RandomAccessReader reader, |
| 62 |
int tagId, |
| 63 |
int byteCount) throws IOException; |
| 64 |
|
| 65 |
void warn(@NotNull String message); |
| 66 |
void error(@NotNull String message); |
| 67 |
|
| 68 |
void setByteArray(int tagId, @NotNull byte[] bytes); |
| 69 |
void setString(int tagId, @NotNull StringValue string); |
| 70 |
void setRational(int tagId, @NotNull Rational rational); |
| 71 |
void setRationalArray(int tagId, @NotNull Rational[] array); |
| 72 |
void setFloat(int tagId, float float32); |
| 73 |
void setFloatArray(int tagId, @NotNull float[] array); |
| 74 |
void setDouble(int tagId, double double64); |
| 75 |
void setDoubleArray(int tagId, @NotNull double[] array); |
| 76 |
void setInt8s(int tagId, byte int8s); |
| 77 |
void setInt8sArray(int tagId, @NotNull byte[] array); |
| 78 |
void setInt8u(int tagId, short int8u); |
| 79 |
void setInt8uArray(int tagId, @NotNull short[] array); |
| 80 |
void setInt16s(int tagId, int int16s); |
| 81 |
void setInt16sArray(int tagId, @NotNull short[] array); |
| 82 |
void setInt16u(int tagId, int int16u); |
| 83 |
void setInt16uArray(int tagId, @NotNull int[] array); |
| 84 |
void setInt32s(int tagId, int int32s); |
| 85 |
void setInt32sArray(int tagId, @NotNull int[] array); |
| 86 |
void setInt32u(int tagId, long int32u); |
| 87 |
void setInt32uArray(int tagId, @NotNull long[] array); |
| 88 |
} |