Class AbstractFullBox

java.lang.Object
org.mp4parser.support.AbstractBox
org.mp4parser.support.AbstractFullBox
All Implemented Interfaces:
Box, FullBox, ParsableBox
Direct Known Subclasses:
AbstractDescriptorBox, AbstractMediaHeaderBox, AbstractSampleEncryptionBox, AbstractTrackEncryptionBox, AlbumBox, AppleDataRateBox, AppleDataReferenceBox, AppleLosslessSpecificBox, AssetInformationBox, AuthorBox, BaseLocationBox, BaseMediaInfoAtom, ChunkOffsetBox, ClassificationBox, CleanApertureAtom, CompositionTimeToSample, CompositionToDecodeBox, ContentInformationBox, ContentLightLevelBox, CopyrightBox, DataEntryUrlBox, DataEntryUrnBox, DegradationPriorityBox, DescriptionBox, EditListBox, EventMessageBox, GenreBox, HandlerBox, ItemLocationBox, KeywordsBox, LocationInformationBox, MediaHeaderBox, MovieExtendsHeaderBox, MovieFragmentHeaderBox, MovieFragmentRandomAccessOffsetBox, MovieHeaderBox, OmaDrmAccessUnitFormatBox, PerformerBox, ProgressiveDownloadInformationBox, ProtectionSystemSpecificHeaderBox, RatingBox, RecordingYearBox, SampleAuxiliaryInformationOffsetsBox, SampleAuxiliaryInformationSizesBox, SampleDependencyTypeBox, SampleGroupDescriptionBox, SampleSizeBox, SampleToChunkBox, SampleToGroupBox, SchemeTypeBox, SegmentIndexBox, SMPTE2086MasteringDisplayMetadataBox, SubSampleInformationBox, SyncSampleBox, TfrfBox, TfxdBox, TimeToSampleBox, TitleBox, TrackEncodedPixelsDimensionsAtom, TrackExtendsBox, TrackFragmentBaseMediaDecodeTimeBox, TrackFragmentHeaderBox, TrackFragmentRandomAccessBox, TrackHeaderBox, TrackProductionApertureDimensionsAtom, TrackRunBox, TrickPlayBox, UuidBasedProtectionSystemSpecificHeaderBox, VPCodecConfigurationBox, XmlBox

public abstract class AbstractFullBox extends AbstractBox implements FullBox
Base class for all ISO Full boxes.
  • Field Details

    • version

      protected int version
    • flags

      protected int flags
  • Constructor Details

    • AbstractFullBox

      protected AbstractFullBox(String type)
    • AbstractFullBox

      protected AbstractFullBox(String type, byte[] userType)
  • Method Details

    • getVersion

      @DoNotParseDetail public int getVersion()
      Specified by:
      getVersion in interface FullBox
    • setVersion

      public void setVersion(int version)
      Specified by:
      setVersion in interface FullBox
    • getFlags

      @DoNotParseDetail public int getFlags()
      Specified by:
      getFlags in interface FullBox
    • setFlags

      public void setFlags(int flags)
      Specified by:
      setFlags in interface FullBox
    • parseVersionAndFlags

      protected final long parseVersionAndFlags(ByteBuffer content)
      Parses the version/flags header and returns the remaining box size.
      Parameters:
      content - the ByteBuffer that contains the version & flag
      Returns:
      number of bytes read
    • writeVersionAndFlags

      protected final void writeVersionAndFlags(ByteBuffer bb)