Package com.drew.metadata.mov
Class QuickTimeMediaHandler<T extends QuickTimeDirectory>
- java.lang.Object
-
- com.drew.imaging.quicktime.QuickTimeHandler<T>
-
- com.drew.metadata.mov.QuickTimeMediaHandler<T>
-
- Direct Known Subclasses:
QuickTimeMusicHandler,QuickTimeSoundHandler,QuickTimeSubtitleHandler,QuickTimeTextHandler,QuickTimeTimecodeHandler,QuickTimeVideoHandler
public abstract class QuickTimeMediaHandler<T extends QuickTimeDirectory> extends QuickTimeHandler<T>
Classes that extend this class should be from the media dat atom types: https://developer.apple.com/library/content/documentation/QuickTime/QTFF/QTFFChap3/qtff3.html#//apple_ref/doc/uid/TP40000939-CH205-SW1
-
-
Field Summary
-
Fields inherited from class com.drew.imaging.quicktime.QuickTimeHandler
directory, metadata
-
-
Constructor Summary
Constructors Constructor Description QuickTimeMediaHandler(Metadata metadata, QuickTimeContext context)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.lang.StringgetMediaInformation()QuickTimeMediaHandler<?>processAtom(Atom atom, byte[] payload, QuickTimeContext context)protected abstract voidprocessMediaInformation(SequentialReader reader, Atom atom)protected abstract voidprocessSampleDescription(SequentialReader reader, Atom atom)protected abstract voidprocessTimeToSample(SequentialReader reader, Atom atom, QuickTimeContext context)booleanshouldAcceptAtom(Atom atom)booleanshouldAcceptContainer(Atom atom)-
Methods inherited from class com.drew.imaging.quicktime.QuickTimeHandler
addError, createDirectory, processContainer
-
-
-
-
Constructor Detail
-
QuickTimeMediaHandler
public QuickTimeMediaHandler(Metadata metadata, QuickTimeContext context)
-
-
Method Detail
-
shouldAcceptAtom
public boolean shouldAcceptAtom(Atom atom)
- Specified by:
shouldAcceptAtomin classQuickTimeHandler<T extends QuickTimeDirectory>
-
shouldAcceptContainer
public boolean shouldAcceptContainer(Atom atom)
- Specified by:
shouldAcceptContainerin classQuickTimeHandler<T extends QuickTimeDirectory>
-
processAtom
public QuickTimeMediaHandler<?> processAtom(Atom atom, byte[] payload, QuickTimeContext context) throws java.io.IOException
- Specified by:
processAtomin classQuickTimeHandler<T extends QuickTimeDirectory>- Throws:
java.io.IOException
-
getMediaInformation
protected abstract java.lang.String getMediaInformation()
-
processSampleDescription
protected abstract void processSampleDescription(SequentialReader reader, Atom atom) throws java.io.IOException
- Throws:
java.io.IOException
-
processMediaInformation
protected abstract void processMediaInformation(SequentialReader reader, Atom atom) throws java.io.IOException
- Throws:
java.io.IOException
-
processTimeToSample
protected abstract void processTimeToSample(SequentialReader reader, Atom atom, QuickTimeContext context) throws java.io.IOException
- Throws:
java.io.IOException
-
-