Changeset 13061 in josm for trunk/src/com/drew/imaging/tiff


Ignore:
Timestamp:
2017-10-30T22:46:09+01:00 (7 years ago)
Author:
Don-vip
Message:

fix #15505 - update to metadata-extractor 2.10.1

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  
    11/*
    2  * Copyright 2002-2016 Drew Noakes
     2 * Copyright 2002-2017 Drew Noakes
    33 *
    44 *    Licensed under the Apache License, Version 2.0 (the "License");
  • trunk/src/com/drew/imaging/tiff/TiffHandler.java

    r10862 r13061  
    11/*
    2  * Copyright 2002-2016 Drew Noakes
     2 * Copyright 2002-2017 Drew Noakes
    33 *
    44 *    Licensed under the Apache License, Version 2.0 (the "License");
     
    2525import com.drew.lang.annotations.NotNull;
    2626import com.drew.lang.annotations.Nullable;
     27import com.drew.metadata.StringValue;
    2728
    2829import java.io.IOException;
     
    5253    void endingIFD();
    5354
    54     void completed(@NotNull final RandomAccessReader reader, final int tiffHeaderOffset);
    55 
    5655    @Nullable
    5756    Long tryCustomProcessFormat(int tagId, int formatCode, long componentCount);
     
    6867
    6968    void setByteArray(int tagId, @NotNull byte[] bytes);
    70     void setString(int tagId, @NotNull String string);
     69    void setString(int tagId, @NotNull StringValue string);
    7170    void setRational(int tagId, @NotNull Rational rational);
    7271    void setRationalArray(int tagId, @NotNull Rational[] array);
  • trunk/src/com/drew/imaging/tiff/TiffProcessingException.java

    r10862 r13061  
    11/*
    2  * Copyright 2002-2016 Drew Noakes
     2 * Copyright 2002-2017 Drew Noakes
    33 *
    44 *    Licensed under the Apache License, Version 2.0 (the "License");
  • trunk/src/com/drew/imaging/tiff/TiffReader.java

    r10862 r13061  
    11/*
    2  * Copyright 2002-2016 Drew Noakes
     2 * Copyright 2002-2017 Drew Noakes
    33 *
    44 *    Licensed under the Apache License, Version 2.0 (the "License");
     
    7777        Set<Integer> processedIfdOffsets = new HashSet<Integer>();
    7878        processIfd(handler, reader, processedIfdOffsets, firstIfdOffset, tiffHeaderOffset);
    79 
    80         handler.completed(reader, tiffHeaderOffset);
    8179    }
    8280
     
    265263                break;
    266264            case TiffDataFormat.CODE_STRING:
    267                 handler.setString(tagId, reader.getNullTerminatedString(tagValueOffset, componentCount));
     265                handler.setString(tagId, reader.getNullTerminatedStringValue(tagValueOffset, componentCount, null));
    268266                break;
    269267            case TiffDataFormat.CODE_RATIONAL_S:
Note: See TracChangeset for help on using the changeset viewer.