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,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,SubSampleInformationBox,SyncSampleBox,TfrfBox,TfxdBox,TimeToSampleBox,TitleBox,TrackEncodedPixelsDimensionsAtom,TrackExtendsBox,TrackFragmentBaseMediaDecodeTimeBox,TrackFragmentHeaderBox,TrackFragmentRandomAccessBox,TrackHeaderBox,TrackProductionApertureDimensionsAtom,TrackRunBox,TrickPlayBox,UuidBasedProtectionSystemSpecificHeaderBox,XmlBox
public abstract class AbstractFullBox extends AbstractBox implements FullBox
Base class for all ISO Full boxes.
-
-
Field Summary
-
Fields inherited from class org.mp4parser.support.AbstractBox
content, type
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractFullBox(String type)protectedAbstractFullBox(String type, byte[] userType)
-
Method Summary
Modifier and Type Method Description intgetFlags()intgetVersion()protected longparseVersionAndFlags(ByteBuffer content)Parses the version/flags header and returns the remaining box size.voidsetFlags(int flags)voidsetVersion(int version)protected voidwriteVersionAndFlags(ByteBuffer bb)-
Methods inherited from class org.mp4parser.support.AbstractBox
_parseDetails, getBox, getContent, getContentSize, getSize, getType, getUserType, isParsed, parse, parseDetails
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.mp4parser.ParsableBox
parse
-
-
-
-
Method Detail
-
getVersion
@DoNotParseDetail public int getVersion()
- Specified by:
getVersionin interfaceFullBox
-
setVersion
public void setVersion(int version)
- Specified by:
setVersionin interfaceFullBox
-
getFlags
@DoNotParseDetail public int getFlags()
-
parseVersionAndFlags
protected final long parseVersionAndFlags(ByteBuffer content)
Parses the version/flags header and returns the remaining box size.- Parameters:
content- theByteBufferthat contains the version & flag- Returns:
- number of bytes read
-
writeVersionAndFlags
protected final void writeVersionAndFlags(ByteBuffer bb)
-
-