|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.coremedia.iso.boxes.AbstractBox
com.coremedia.iso.boxes.AbstractFullBox
com.coremedia.iso.boxes.odf.OmaDrmCommonHeadersBox
public class OmaDrmCommonHeadersBox
The Common Headers Box defines a structure for required headers in a DCF file. See OMA-TS-DRM-DCF-V2_0-* specification for details.
Field Summary | |
---|---|
static String |
TYPE
|
Fields inherited from class com.coremedia.iso.boxes.AbstractBox |
---|
offset, parsed |
Constructor Summary | |
---|---|
OmaDrmCommonHeadersBox()
|
Method Summary | ||
---|---|---|
List<Box> |
getBoxes()
Gets all child boxes. |
|
|
getBoxes(Class<T> clazz)
Gets all child boxes of the given type. |
|
|
getBoxes(Class<T> clazz,
boolean recursive)
Gets all child boxes of the given type. |
|
protected void |
getContent(IsoOutputStream isos)
Writes the box's content into the given IsoOutputStream . |
|
String |
getContentId()
|
|
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. |
|
int |
getEncryptionMethod()
|
|
long |
getNumOfBytesToFirstChild()
Returns the number of bytes from the start of the box to start of the first child. |
|
int |
getPaddingScheme()
|
|
long |
getPlaintextLength()
|
|
String |
getRightsIssuerUrl()
|
|
String |
getTextualHeaders()
|
|
void |
parse(IsoBufferWrapper in,
long size,
BoxParser boxParser,
Box lastMovieFragmentBox)
Pareses the given IsoBufferWrapper and returns the remaining bytes. |
|
void |
setBoxes(List<Box> extendedHeaders)
Sets all boxes and removes all previous child boxes. |
|
void |
setContentId(String contentId)
|
|
void |
setEncryptionMethod(int encryptionMethod)
|
|
void |
setPaddingScheme(int paddingScheme)
|
|
void |
setPlaintextLength(long plaintextLength)
|
|
void |
setRightsIssuerUrl(String rightsIssuerUrl)
|
|
void |
setTextualHeaders(Map<String,String> m)
|
|
String |
toString()
|
Methods inherited from class com.coremedia.iso.boxes.AbstractFullBox |
---|
getFlags, getHeader, getHeaderSize, 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.ContainerBox |
---|
getIsoFile, getParent |
Methods inherited from interface com.coremedia.iso.boxes.Box |
---|
calculateOffset, getBox, getOffset, getSize, getType, getUserType, isParsed |
Field Detail |
---|
public static final String TYPE
Constructor Detail |
---|
public OmaDrmCommonHeadersBox()
Method Detail |
---|
public <T extends Box> List<T> getBoxes(Class<T> clazz)
ContainerBox
null
.
getBoxes
in interface ContainerBox
clazz
- child box's type
public <T extends Box> List<T> getBoxes(Class<T> clazz, boolean recursive)
ContainerBox
null
.
getBoxes
in interface ContainerBox
clazz
- child box's typerecursive
- step down the tree
public List<Box> getBoxes()
ContainerBox
null
.
getBoxes
in interface ContainerBox
public void setTextualHeaders(Map<String,String> m)
public void setRightsIssuerUrl(String rightsIssuerUrl)
public void setContentId(String contentId)
public void setPlaintextLength(long plaintextLength)
public void setPaddingScheme(int paddingScheme)
public void setEncryptionMethod(int encryptionMethod)
public int getEncryptionMethod()
public int getPaddingScheme()
public long getPlaintextLength()
public String getContentId()
public String getRightsIssuerUrl()
public String getTextualHeaders()
public String getDisplayName()
AbstractBox
getDisplayName
in class AbstractBox
protected long getContentSize()
AbstractFullBox
getContentSize
in class AbstractFullBox
public void parse(IsoBufferWrapper in, long size, BoxParser boxParser, Box lastMovieFragmentBox) throws IOException
AbstractBox
parse
in class AbstractFullBox
in
- the (part of the) iso file to parsesize
- expected size of the boxboxParser
- creates inner boxeslastMovieFragmentBox
- latest of previously found moof boxes
IOException
- in case of an I/O error.protected void getContent(IsoOutputStream isos) throws IOException
AbstractBox
IsoOutputStream
. This MUST NOT include
any header bytes.
getContent
in class AbstractBox
isos
- the box's content-sink.
IOException
- in case of an exception in the underlying OutputStream
.public String toString()
toString
in class Object
public void setBoxes(List<Box> extendedHeaders)
ContainerBox
setBoxes
in interface ContainerBox
extendedHeaders
- the new list of childrenpublic long getNumOfBytesToFirstChild()
ContainerBox
getNumOfBytesToFirstChild
in interface ContainerBox
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |