Package gov.nih.mipav.model.file
Class MetadataExtractor.DirectoryTiffHandler
- java.lang.Object
-
- gov.nih.mipav.model.file.MetadataExtractor.DirectoryTiffHandler
-
- All Implemented Interfaces:
MetadataExtractor.TiffHandler
- Direct Known Subclasses:
MetadataExtractor.ExifTiffHandler
- Enclosing class:
- MetadataExtractor
public abstract class MetadataExtractor.DirectoryTiffHandler extends java.lang.Object implements MetadataExtractor.TiffHandler
Adapter between theMetadataExtractor.TiffHandler
interface and theMetadataExtractor.Metadata
/MetadataExtractor.Directory
object model.- Author:
- Drew Noakes https://drewnoakes.com
-
-
Field Summary
Fields Modifier and Type Field Description protected MetadataExtractor.Directory
_currentDirectory
private java.util.Stack<MetadataExtractor.Directory>
_directoryStack
protected MetadataExtractor.Metadata
_metadata
private MetadataExtractor.Directory
_rootParentDirectory
-
Constructor Summary
Constructors Modifier Constructor Description protected
DirectoryTiffHandler(MetadataExtractor.Metadata metadata, MetadataExtractor.Directory parentDirectory)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface gov.nih.mipav.model.file.MetadataExtractor.TiffHandler
customProcessTag, hasFollowerIfd, setTiffMarker, tryCustomProcessFormat, tryEnterSubIfd
-
-
-
-
Field Detail
-
_directoryStack
private final java.util.Stack<MetadataExtractor.Directory> _directoryStack
-
_rootParentDirectory
private MetadataExtractor.Directory _rootParentDirectory
-
_currentDirectory
protected MetadataExtractor.Directory _currentDirectory
-
_metadata
protected final MetadataExtractor.Metadata _metadata
-
-
Constructor Detail
-
DirectoryTiffHandler
protected DirectoryTiffHandler(MetadataExtractor.Metadata metadata, MetadataExtractor.Directory parentDirectory)
-
-
Method Detail
-
endingIFD
public void endingIFD()
- Specified by:
endingIFD
in interfaceMetadataExtractor.TiffHandler
-
pushExifIFD0Directory
protected void pushExifIFD0Directory()
-
pushExifInteropDirectory
protected void pushExifInteropDirectory()
-
pushExifThumbnailDirectory
protected void pushExifThumbnailDirectory()
-
pushSubExifIFDDirectory
protected void pushSubExifIFDDirectory()
-
pushPanasonicRawIFD0Directory
protected void pushPanasonicRawIFD0Directory()
-
pushErrorDirectory
protected void pushErrorDirectory()
-
pushGpsDirectory
protected void pushGpsDirectory()
-
pushOlympusEquipmentMakernoteDirectory
protected void pushOlympusEquipmentMakernoteDirectory()
-
pushOlympusCameraSettingsMakernoteDirectory
protected void pushOlympusCameraSettingsMakernoteDirectory()
-
pushOlympusRawDevelopmentMakernoteDirectory
protected void pushOlympusRawDevelopmentMakernoteDirectory()
-
pushOlympusRawDevelopment2MakernoteDirectory
protected void pushOlympusRawDevelopment2MakernoteDirectory()
-
pushOlympusImageProcessingMakernoteDirectory
protected void pushOlympusImageProcessingMakernoteDirectory()
-
pushOlympusFocusInfoMakernoteDirectory
protected void pushOlympusFocusInfoMakernoteDirectory()
-
pushOlympusRawInfoMakernoteDirectory
protected void pushOlympusRawInfoMakernoteDirectory()
-
pushOlympusMakernoteDirectory
protected void pushOlympusMakernoteDirectory()
-
pushExifImageDirectory
protected void pushExifImageDirectory()
-
pushNikonType1MakernoteDirectory
protected void pushNikonType1MakernoteDirectory()
-
pushNikonType2MakernoteDirectory
protected void pushNikonType2MakernoteDirectory()
-
pushSonyType1MakernoteDirectory
protected void pushSonyType1MakernoteDirectory()
-
pushSonyType6MakernoteDirectory
protected void pushSonyType6MakernoteDirectory()
-
pushSigmaMakernoteDirectory
protected void pushSigmaMakernoteDirectory()
-
pushCanonMakernoteDirectory
protected void pushCanonMakernoteDirectory()
-
pushCasioType1MakernoteDirectory
protected void pushCasioType1MakernoteDirectory()
-
pushCasioType2MakernoteDirectory
protected void pushCasioType2MakernoteDirectory()
-
pushFujifilmMakernoteDirectory
protected void pushFujifilmMakernoteDirectory()
-
pushKyoceraMakernoteDirectory
protected void pushKyoceraMakernoteDirectory()
-
pushLeicaType5MakernoteDirectory
protected void pushLeicaType5MakernoteDirectory()
-
pushLeicaMakernoteDirectory
protected void pushLeicaMakernoteDirectory()
-
pushPanasonicMakernoteDirectory
protected void pushPanasonicMakernoteDirectory()
-
pushPentaxMakernoteDirectory
protected void pushPentaxMakernoteDirectory()
-
pushSanyoMakernoteDirectory
protected void pushSanyoMakernoteDirectory()
-
pushRicohMakernoteDirectory
protected void pushRicohMakernoteDirectory()
-
pushAppleMakernoteDirectory
protected void pushAppleMakernoteDirectory()
-
pushSamsungType2MakernoteDirectory
protected void pushSamsungType2MakernoteDirectory()
-
pushDirectory
protected void pushDirectory(java.lang.Class<? extends MetadataExtractor.Directory> directoryClass)
-
warn
public void warn(java.lang.String message)
- Specified by:
warn
in interfaceMetadataExtractor.TiffHandler
-
error
public void error(java.lang.String message)
- Specified by:
error
in interfaceMetadataExtractor.TiffHandler
-
getCurrentOrErrorDirectory
private MetadataExtractor.Directory getCurrentOrErrorDirectory()
-
setByteArray
public void setByteArray(int tagId, byte[] bytes)
- Specified by:
setByteArray
in interfaceMetadataExtractor.TiffHandler
-
setString
public void setString(int tagId, MetadataExtractor.StringValue string)
- Specified by:
setString
in interfaceMetadataExtractor.TiffHandler
-
setRational
public void setRational(int tagId, MetadataExtractor.Rational rational)
- Specified by:
setRational
in interfaceMetadataExtractor.TiffHandler
-
setRationalArray
public void setRationalArray(int tagId, MetadataExtractor.Rational[] array)
- Specified by:
setRationalArray
in interfaceMetadataExtractor.TiffHandler
-
setFloat
public void setFloat(int tagId, float float32)
- Specified by:
setFloat
in interfaceMetadataExtractor.TiffHandler
-
setFloatArray
public void setFloatArray(int tagId, float[] array)
- Specified by:
setFloatArray
in interfaceMetadataExtractor.TiffHandler
-
setDouble
public void setDouble(int tagId, double double64)
- Specified by:
setDouble
in interfaceMetadataExtractor.TiffHandler
-
setDoubleArray
public void setDoubleArray(int tagId, double[] array)
- Specified by:
setDoubleArray
in interfaceMetadataExtractor.TiffHandler
-
setInt8s
public void setInt8s(int tagId, byte int8s)
- Specified by:
setInt8s
in interfaceMetadataExtractor.TiffHandler
-
setInt8sArray
public void setInt8sArray(int tagId, byte[] array)
- Specified by:
setInt8sArray
in interfaceMetadataExtractor.TiffHandler
-
setInt8u
public void setInt8u(int tagId, short int8u)
- Specified by:
setInt8u
in interfaceMetadataExtractor.TiffHandler
-
setInt8uArray
public void setInt8uArray(int tagId, short[] array)
- Specified by:
setInt8uArray
in interfaceMetadataExtractor.TiffHandler
-
setInt16s
public void setInt16s(int tagId, int int16s)
- Specified by:
setInt16s
in interfaceMetadataExtractor.TiffHandler
-
setInt16sArray
public void setInt16sArray(int tagId, short[] array)
- Specified by:
setInt16sArray
in interfaceMetadataExtractor.TiffHandler
-
setInt16u
public void setInt16u(int tagId, int int16u)
- Specified by:
setInt16u
in interfaceMetadataExtractor.TiffHandler
-
setInt16uArray
public void setInt16uArray(int tagId, int[] array)
- Specified by:
setInt16uArray
in interfaceMetadataExtractor.TiffHandler
-
setInt32s
public void setInt32s(int tagId, int int32s)
- Specified by:
setInt32s
in interfaceMetadataExtractor.TiffHandler
-
setInt32sArray
public void setInt32sArray(int tagId, int[] array)
- Specified by:
setInt32sArray
in interfaceMetadataExtractor.TiffHandler
-
setInt32u
public void setInt32u(int tagId, long int32u)
- Specified by:
setInt32u
in interfaceMetadataExtractor.TiffHandler
-
setInt32uArray
public void setInt32uArray(int tagId, long[] array)
- Specified by:
setInt32uArray
in interfaceMetadataExtractor.TiffHandler
-
-