com.coremedia.iso.boxes.odf
Class OmaDrmContentObjectBox

java.lang.Object
  extended by com.coremedia.iso.boxes.AbstractBox
      extended by com.coremedia.iso.boxes.AbstractFullBox
          extended by com.coremedia.iso.boxes.odf.OmaDrmContentObjectBox
All Implemented Interfaces:
Box, FullBox

public class OmaDrmContentObjectBox
extends AbstractFullBox


Field Summary
static String TYPE
           
 
Fields inherited from class com.coremedia.iso.boxes.AbstractBox
offset, parsed
 
Constructor Summary
OmaDrmContentObjectBox()
           
 
Method Summary
protected  void getContent(IsoOutputStream os)
          Writes the box's content into the given IsoOutputStream.
protected  long getContentSize()
          Gets the box's content size without header size where header includes flags and version.
 String getDisplayName()
          Returns the human readable name of the box.
 byte[] getHeader()
           
protected  long getHeaderSize()
           
 byte[] getOmaDrmData()
           
 long getOmaDrmDataLength()
           
 void parse(IsoBufferWrapper in, long size, BoxParser boxParser, Box lastMovieFragmentBox)
          Pareses the given IsoBufferWrapper and returns the remaining bytes.
 String toString()
           
 
Methods inherited from class com.coremedia.iso.boxes.AbstractFullBox
getFlags, getVersion, parseHeader, setFlags, setVersion
 
Methods inherited from class com.coremedia.iso.boxes.AbstractBox
addWriteListener, calculateOffset, getBox, getDeadBytes, getIsoFile, getOffset, getParent, getSize, getType, getUserType, isParsed, setDeadBytes, setParent, setParsed, setUserType, utf8StringLengthInBytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.coremedia.iso.boxes.Box
calculateOffset, getBox, getIsoFile, getOffset, getParent, getSize, getType, getUserType, isParsed
 

Field Detail

TYPE

public static final String TYPE
See Also:
Constant Field Values
Constructor Detail

OmaDrmContentObjectBox

public OmaDrmContentObjectBox()
Method Detail

getHeader

public byte[] getHeader()
Overrides:
getHeader in class AbstractFullBox

getHeaderSize

protected long getHeaderSize()
Overrides:
getHeaderSize in class AbstractFullBox

getOmaDrmDataLength

public long getOmaDrmDataLength()

getOmaDrmData

public byte[] getOmaDrmData()

getDisplayName

public String getDisplayName()
Description copied from class: AbstractBox
Returns the human readable name of the box.

Specified by:
getDisplayName in class AbstractBox
Returns:
a display string

getContentSize

protected long getContentSize()
Description copied from class: AbstractFullBox
Gets the box's content size without header size where header includes flags and version.

Specified by:
getContentSize in class AbstractFullBox
Returns:
Gets the box's content size

parse

public void parse(IsoBufferWrapper in,
                  long size,
                  BoxParser boxParser,
                  Box lastMovieFragmentBox)
           throws IOException
Description copied from class: AbstractBox
Pareses the given IsoBufferWrapper and returns the remaining bytes.

Overrides:
parse in class AbstractFullBox
Parameters:
in - the (part of the) iso file to parse
size - expected size of the box
boxParser - creates inner boxes
lastMovieFragmentBox - latest of previously found moof boxes
Throws:
IOException - in case of an I/O error.

getContent

protected void getContent(IsoOutputStream os)
                   throws IOException
Description copied from class: AbstractBox
Writes the box's content into the given IsoOutputStream. This MUST NOT include any header bytes.

Specified by:
getContent in class AbstractBox
Parameters:
os - the box's content-sink.
Throws:
IOException - in case of an exception in the underlying OutputStream.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.