Class MetadataExtractor.AppleRunTimeReader

java.lang.Object
gov.nih.mipav.model.file.MetadataExtractor.AppleRunTimeReader
Enclosing class:
MetadataExtractor

public class MetadataExtractor.AppleRunTimeReader extends Object
Reads the AppleRunTime data and adds MetadataExtractor.AppleRunTimeMakernoteDirectory to the parent MetadataExtractor.AppleMakernoteDirectory if it can be parsed with no errors.
  • 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.