Package gov.nih.mipav.model.file
Class MetadataExtractor.AppleRunTimeReader
java.lang.Object
gov.nih.mipav.model.file.MetadataExtractor.AppleRunTimeReader
- Enclosing class:
MetadataExtractor
Reads the AppleRunTime data and adds
MetadataExtractor.AppleRunTimeMakernoteDirectory to the
parent MetadataExtractor.AppleMakernoteDirectory if it can be parsed with no errors.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidextract(byte[] bytes, MetadataExtractor.Metadata metadata, MetadataExtractor.Directory parentDirectory) private voidprocessAppleRunTime(MetadataExtractor.AppleRunTimeMakernoteDirectory directory, byte[] bplist) Process the BPLIST containing the RUN_TIME tag.
-
Constructor Details
-
AppleRunTimeReader
public AppleRunTimeReader()
-
-
Method Details
-
extract
public void extract(byte[] bytes, MetadataExtractor.Metadata metadata, MetadataExtractor.Directory parentDirectory) -
processAppleRunTime
private void processAppleRunTime(MetadataExtractor.AppleRunTimeMakernoteDirectory directory, byte[] bplist) throws IOException Process the BPLIST containing the RUN_TIME tag. The directory will only be populated with values if the flag indicates that the CMTime structure is "valid".- Parameters:
directory- The AppleRunTimeMakernoteDirectory to set values onto.bplist- The BPLIST- Throws:
IOException- Thrown if an error occurs parsing the BPLIST as a CMTime structure.
-