Class TiffOutputSet
java.lang.Object
org.apache.commons.imaging.formats.tiff.write.TiffOutputSet
- All Implemented Interfaces:
Iterable<TiffOutputDirectory>
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ByteOrderprivate final List<TiffOutputDirectory> private static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDirectory(TiffOutputDirectory directory) voiddump()findDirectory(int directoryType) findField(int tag) protected List<AbstractTiffOutputItem> getOutputItems(TiffOutputSummary outputSummary) booleanisEmpty()iterator()voidremoveField(int tag) voidremoveField(TagInfo tagInfo) voidsetGpsInDegrees(double longitude, double latitude) A convenience method to update GPS values in EXIF metadata.toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
NEWLINE
-
byteOrder
-
directories
-
-
Constructor Details
-
TiffOutputSet
public TiffOutputSet() -
TiffOutputSet
-
-
Method Details
-
addDirectory
- Throws:
ImagingException
-
addExifDirectory
- Throws:
ImagingException
-
addGpsDirectory
- Throws:
ImagingException
-
addInteroperabilityDirectory
- Throws:
ImagingException
-
addRootDirectory
- Throws:
ImagingException
-
dump
public void dump() -
findDirectory
-
findField
-
findField
-
getDirectories
-
getExifDirectory
-
getGpsDirectory
-
getInteroperabilityDirectory
-
getOrCreateExifDirectory
- Throws:
ImagingException
-
getOrCreateGpsDirectory
- Throws:
ImagingException
-
getOrCreateRootDirectory
- Throws:
ImagingException
-
getOutputItems
protected List<AbstractTiffOutputItem> getOutputItems(TiffOutputSummary outputSummary) throws ImagingException - Throws:
ImagingException
-
getRootDirectory
-
isEmpty
public boolean isEmpty() -
iterator
- Specified by:
iteratorin interfaceIterable<TiffOutputDirectory>
-
removeField
public void removeField(int tag) -
removeField
-
setGpsInDegrees
A convenience method to update GPS values in EXIF metadata.- Parameters:
longitude- Longitude in degrees E, negative values are W.latitude- latitude in degrees N, negative values are S.- Throws:
ImagingException- if it fails to write the new data to the GPS directory
-
toString
-
toString
-