com.coremedia.iso.boxes
Class AbstractFullBox

java.lang.Object
  extended by com.coremedia.iso.boxes.AbstractBox
      extended by com.coremedia.iso.boxes.AbstractFullBox
All Implemented Interfaces:
Box, FullBox
Direct Known Subclasses:
AbstractDescriptorBox, AbstractMediaHeaderBox, AbstractSampleEncryptionBox, AbstractTrackEncryptionBox, AlbumArtistBox, AlbumBox, AppleDataBox, AppleDataRateBox, AppleDataReferenceBox, AppleLosslessSpecificBox, AppleMeanBox, AppleNameBox, AssetInformationBox, AuthorBox, BaseLocationBox, ChunkOffsetBox, ClassificationBox, CompositionShiftLeastGreatestAtom, CompositionTimeToSample, ContentDistributorIdBox, CopyrightBox, CoverUriBox, DataEntryUrlBox, DataEntryUrnBox, DescriptionBox, EditListBox, FullContainerBox, GenreBox, HandlerBox, ItemLocationBox, KeywordsBox, LocationInformationBox, LyricsUriBox, MediaHeaderBox, MovieExtendsHeaderBox, MovieFragmentHeaderBox, MovieFragmentRandomAccessOffsetBox, MovieHeaderBox, OmaDrmAccessUnitFormatBox, PerformerBox, ProgressiveDownloadInformationBox, RatingBox, RecordingYearBox, SampleAuxiliaryInformationOffsetsBox, SampleAuxiliaryInformationSizesBox, SampleDependencyTypeBox, SampleSizeBox, SampleToChunkBox, SampleToGroupBox, SchemeTypeBox, SubSampleInformationBox, SyncSampleBox, TfrfBox, TfxdBox, TimeToSampleBox, TitleBox, TrackExtendsBox, TrackFragmentBaseMediaDecodeTimeBox, TrackFragmentHeaderBox, TrackFragmentRandomAccessBox, TrackHeaderBox, TrackRunBox, TrickPlayBox, XmlBox

public abstract class AbstractFullBox
extends AbstractBox
implements FullBox

Base class for all ISO Full boxes.


Field Summary
 
Fields inherited from class com.coremedia.iso.boxes.AbstractBox
deadBytes, type
 
Constructor Summary
protected AbstractFullBox(String type)
           
 
Method Summary
 int getFlags()
           
 int getVersion()
           
protected  long parseVersionAndFlags(ByteBuffer content)
          Parses the version/flags header and returns the remaining box size.
 void setFlags(int flags)
           
 void setVersion(int version)
           
protected  void writeVersionAndFlags(ByteBuffer bb)
           
 
Methods inherited from class com.coremedia.iso.boxes.AbstractBox
_parseDetails, getBox, getContent, getContentSize, getDeadBytes, getHeader, getIsoFile, getParent, getSize, getType, getUserType, isParsed, parse, parseDetails, setDeadBytes, setParent, setUserType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.coremedia.iso.boxes.Box
getBox, getParent, getSize, getType, parse, setParent
 

Constructor Detail

AbstractFullBox

protected AbstractFullBox(String type)
Method Detail

getVersion

public int getVersion()
Specified by:
getVersion in interface FullBox

setVersion

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

getFlags

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 -
Returns:
number of bytes read

writeVersionAndFlags

protected final void writeVersionAndFlags(ByteBuffer bb)


Copyright © 2012. All Rights Reserved.