Changeset 13061 in josm for trunk/src/com/drew/imaging/tiff
- Timestamp:
- 2017-10-30T22:46:09+01:00 (7 years ago)
- Location:
- trunk/src/com/drew/imaging/tiff
- Files:
-
- 1 added
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/com/drew/imaging/tiff/TiffDataFormat.java
r10862 r13061 1 1 /* 2 * Copyright 2002-201 6Drew Noakes2 * Copyright 2002-2017 Drew Noakes 3 3 * 4 4 * Licensed under the Apache License, Version 2.0 (the "License"); -
trunk/src/com/drew/imaging/tiff/TiffHandler.java
r10862 r13061 1 1 /* 2 * Copyright 2002-201 6Drew Noakes2 * Copyright 2002-2017 Drew Noakes 3 3 * 4 4 * Licensed under the Apache License, Version 2.0 (the "License"); … … 25 25 import com.drew.lang.annotations.NotNull; 26 26 import com.drew.lang.annotations.Nullable; 27 import com.drew.metadata.StringValue; 27 28 28 29 import java.io.IOException; … … 52 53 void endingIFD(); 53 54 54 void completed(@NotNull final RandomAccessReader reader, final int tiffHeaderOffset);55 56 55 @Nullable 57 56 Long tryCustomProcessFormat(int tagId, int formatCode, long componentCount); … … 68 67 69 68 void setByteArray(int tagId, @NotNull byte[] bytes); 70 void setString(int tagId, @NotNull String string);69 void setString(int tagId, @NotNull StringValue string); 71 70 void setRational(int tagId, @NotNull Rational rational); 72 71 void setRationalArray(int tagId, @NotNull Rational[] array); -
trunk/src/com/drew/imaging/tiff/TiffProcessingException.java
r10862 r13061 1 1 /* 2 * Copyright 2002-201 6Drew Noakes2 * Copyright 2002-2017 Drew Noakes 3 3 * 4 4 * Licensed under the Apache License, Version 2.0 (the "License"); -
trunk/src/com/drew/imaging/tiff/TiffReader.java
r10862 r13061 1 1 /* 2 * Copyright 2002-201 6Drew Noakes2 * Copyright 2002-2017 Drew Noakes 3 3 * 4 4 * Licensed under the Apache License, Version 2.0 (the "License"); … … 77 77 Set<Integer> processedIfdOffsets = new HashSet<Integer>(); 78 78 processIfd(handler, reader, processedIfdOffsets, firstIfdOffset, tiffHeaderOffset); 79 80 handler.completed(reader, tiffHeaderOffset);81 79 } 82 80 … … 265 263 break; 266 264 case TiffDataFormat.CODE_STRING: 267 handler.setString(tagId, reader.getNullTerminatedString (tagValueOffset, componentCount));265 handler.setString(tagId, reader.getNullTerminatedStringValue(tagValueOffset, componentCount, null)); 268 266 break; 269 267 case TiffDataFormat.CODE_RATIONAL_S:
Note:
See TracChangeset
for help on using the changeset viewer.