Package com.drew.metadata.heif
Class HeifBoxHandler
- java.lang.Object
-
- com.drew.imaging.heif.HeifHandler<HeifDirectory>
-
- com.drew.metadata.heif.HeifBoxHandler
-
public class HeifBoxHandler extends HeifHandler<HeifDirectory>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) HandlerBoxhandlerBoxprivate HeifHandlerFactoryhandlerFactory-
Fields inherited from class com.drew.imaging.heif.HeifHandler
directory, metadata
-
-
Constructor Summary
Constructors Constructor Description HeifBoxHandler(Metadata metadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected HeifDirectorygetDirectory()HeifHandler<?>processBox(Box box, byte[] payload)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.private voidprocessFileType(SequentialReader reader, Box box)booleanshouldAcceptBox(Box box)booleanshouldAcceptContainer(Box box)
-
-
-
Field Detail
-
handlerBox
HandlerBox handlerBox
-
handlerFactory
private HeifHandlerFactory handlerFactory
-
-
Constructor Detail
-
HeifBoxHandler
public HeifBoxHandler(Metadata metadata)
-
-
Method Detail
-
getDirectory
protected HeifDirectory getDirectory()
- Specified by:
getDirectoryin classHeifHandler<HeifDirectory>
-
shouldAcceptBox
public boolean shouldAcceptBox(Box box)
- Specified by:
shouldAcceptBoxin classHeifHandler<HeifDirectory>
-
shouldAcceptContainer
public boolean shouldAcceptContainer(Box box)
- Specified by:
shouldAcceptContainerin classHeifHandler<HeifDirectory>
-
processBox
public HeifHandler<?> processBox(Box box, byte[] payload) throws java.io.IOException
- Specified by:
processBoxin classHeifHandler<HeifDirectory>- Throws:
java.io.IOException
-
processContainer
public 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
-
processFileType
private void processFileType(SequentialReader reader, Box box) throws java.io.IOException
- Throws:
java.io.IOException
-
-