Package com.bfo.box
Class ExtensionBox
java.lang.Object
com.bfo.box.Box
com.bfo.box.ExtensionBox
- Direct Known Subclasses:
C2PAContainerBox
,XMPBox
This superclass of Box handles the standad "extension" format defined in
ISO14496-12 s 11. It's simply a box where the first 16 bytes have a
further type (called "uuid" in ISO14496, "content-type" in ISO19566,
"guid" in 16684). We'll call it "subtype" and we will trim from 16 hex
digits to four letters if it ends with the "standard" suffix defined
in ISO14496.
- Since:
- 5
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new uninitialized box, for loading.ExtensionBox
(String type, String subtype) Create a new ExtensionBox. -
Method Summary
-
Constructor Details
-
ExtensionBox
public ExtensionBox()Create a new uninitialized box, for loading. Don't call this constructor -
ExtensionBox
Create a new ExtensionBox. Both parameter are erquired- Parameters:
type
- a four letter alphanumeric code, often "uuid"subtype
- either a four letter alphanumeric code or a sixteen-letter hex code
-
-
Method Details
-
subtype
Return the subtype of this box, either a 4-character alpha-numeric string (if the type is a "standard" subtype) or a 32-character hex string- Returns:
- the subtype
-
toString
Description copied from class:Box
Return a String representation of this Box, which will be parseable as JSON
-