Writes one 12-byte IFD entry.
(OutputStream out, int tag, int fieldType, int count, int value)
| 267 | |
| 268 | /** Writes one 12-byte IFD entry. */ |
| 269 | void writeEntry(OutputStream out, int tag, int fieldType, int count, int value) throws IOException { |
| 270 | writeShort(out, tag); |
| 271 | writeShort(out, fieldType); |
| 272 | writeInt(out, count); |
| 273 | if (count==1 && fieldType==TiffDecoder.SHORT) { |
| 274 | writeShort(out, value); |
| 275 | writeShort(out, 0); |
| 276 | } else |
| 277 | writeInt(out, value); // may be an offset |
| 278 | } |
| 279 | |
| 280 | /** Writes one IFD (Image File Directory). */ |
| 281 | void writeIFD(OutputStream out, int imageOffset, int nextIFD) throws IOException { |
no test coverage detected