Package org.mp4parser.support
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
Base class for all ISO Full boxes.
-
Field Summary
FieldsFields inherited from class org.mp4parser.support.AbstractBox
content, type -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractFullBox(String type) protectedAbstractFullBox(String type, byte[] userType) -
Method Summary
Modifier and TypeMethodDescriptionintgetFlags()intprotected final longparseVersionAndFlags(ByteBuffer content) Parses the version/flags header and returns the remaining box size.voidsetFlags(int flags) voidsetVersion(int version) protected final voidMethods inherited from class org.mp4parser.support.AbstractBox
_parseDetails, getBox, getContent, getContentSize, getSize, getType, getUserType, isParsed, parse, parseDetailsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.mp4parser.ParsableBox
parse
-
Field Details
-
version
protected int version -
flags
protected int flags
-
-
Constructor Details
-
AbstractFullBox
-
AbstractFullBox
-
-
Method Details
-
getVersion
- Specified by:
getVersionin interfaceFullBox
-
setVersion
public void setVersion(int version) - Specified by:
setVersionin interfaceFullBox
-
getFlags
-
setFlags
public void setFlags(int flags) -
parseVersionAndFlags
Parses the version/flags header and returns the remaining box size.- Parameters:
content- theByteBufferthat contains the version & flag- Returns:
- number of bytes read
-
writeVersionAndFlags
-