Package com.drew.metadata.heif
Class HeifPictureHandler
- java.lang.Object
-
- com.drew.imaging.heif.HeifHandler<HeifDirectory>
-
- com.drew.metadata.heif.HeifPictureHandler
-
public class HeifPictureHandler extends HeifHandler<HeifDirectory>
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Set<java.lang.String>boxesCanProcessprivate static java.util.Set<java.lang.String>containersCanProcess(package private) ItemInfoBoxitemInfoBox(package private) ItemLocationBoxitemLocationBox(package private) ItemProtectionBoxitemProtectionBoxprivate static java.util.Set<java.lang.String>itemsCanProcess(package private) PrimaryItemBoxprimaryItemBox-
Fields inherited from class com.drew.imaging.heif.HeifHandler
directory, metadata
-
-
Constructor Summary
Constructors Constructor Description HeifPictureHandler(Metadata metadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected HeifDirectorygetDirectory()private voidhandleItem(ItemInfoBox.ItemInfoEntry entry, SequentialByteArrayReader payloadReader)protected HeifHandler<?>processBox(Box box, byte[] payload)protected voidprocessContainer(Box box, SequentialReader reader)There is potential for a box to both contain other boxes and contain information, so this method will handle those occurrences.protected booleanshouldAcceptBox(Box box)protected booleanshouldAcceptContainer(Box box)private booleanshouldHandleItem(ItemInfoBox.ItemInfoEntry infoEntry)
-
-
-
Field Detail
-
boxesCanProcess
private static final java.util.Set<java.lang.String> boxesCanProcess
-
itemsCanProcess
private static final java.util.Set<java.lang.String> itemsCanProcess
-
containersCanProcess
private static final java.util.Set<java.lang.String> containersCanProcess
-
itemProtectionBox
ItemProtectionBox itemProtectionBox
-
primaryItemBox
PrimaryItemBox primaryItemBox
-
itemInfoBox
ItemInfoBox itemInfoBox
-
itemLocationBox
ItemLocationBox itemLocationBox
-
-
Constructor Detail
-
HeifPictureHandler
public HeifPictureHandler(Metadata metadata)
-
-
Method Detail
-
shouldAcceptBox
protected boolean shouldAcceptBox(Box box)
- Specified by:
shouldAcceptBoxin classHeifHandler<HeifDirectory>
-
shouldAcceptContainer
protected boolean shouldAcceptContainer(Box box)
- Specified by:
shouldAcceptContainerin classHeifHandler<HeifDirectory>
-
processBox
protected HeifHandler<?> processBox(Box box, byte[] payload) throws java.io.IOException
- Specified by:
processBoxin classHeifHandler<HeifDirectory>- Throws:
java.io.IOException
-
processContainer
protected void processContainer(Box box, SequentialReader reader) throws java.io.IOException
Description copied from class:HeifHandlerThere is potential for a box to both contain other boxes and contain information, so this method will handle those occurrences.- Specified by:
processContainerin classHeifHandler<HeifDirectory>- Throws:
java.io.IOException
-
shouldHandleItem
private boolean shouldHandleItem(ItemInfoBox.ItemInfoEntry infoEntry)
-
handleItem
private void handleItem(ItemInfoBox.ItemInfoEntry entry, SequentialByteArrayReader payloadReader) throws java.io.IOException
- Throws:
java.io.IOException
-
getDirectory
protected HeifDirectory getDirectory()
- Specified by:
getDirectoryin classHeifHandler<HeifDirectory>
-
-