Package com.drew.imaging.heif
Class HeifHandler<T extends HeifDirectory>
- java.lang.Object
-
- com.drew.imaging.heif.HeifHandler<T>
-
- Direct Known Subclasses:
HeifBoxHandler,HeifPictureHandler
public abstract class HeifHandler<T extends HeifDirectory> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description HeifHandler(Metadata metadata)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description protected abstract TgetDirectory()protected abstract HeifHandler<?>processBox(Box box, byte[] payload)protected abstract 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 abstract booleanshouldAcceptBox(Box box)protected abstract booleanshouldAcceptContainer(Box box)
-
-
-
Field Detail
-
metadata
protected Metadata metadata
-
directory
protected T extends HeifDirectory directory
-
-
Constructor Detail
-
HeifHandler
public HeifHandler(Metadata metadata)
-
-
Method Detail
-
getDirectory
protected abstract T getDirectory()
-
shouldAcceptBox
protected abstract boolean shouldAcceptBox(Box box)
-
shouldAcceptContainer
protected abstract boolean shouldAcceptContainer(Box box)
-
processBox
protected abstract HeifHandler<?> processBox(Box box, byte[] payload) throws java.io.IOException
- Throws:
java.io.IOException
-
processContainer
protected abstract void processContainer(Box box, SequentialReader reader) throws java.io.IOException
There is potential for a box to both contain other boxes and contain information, so this method will handle those occurrences.- Throws:
java.io.IOException
-
-