Package com.bfo.box
Class C2PAContainerBox
java.lang.Object
com.bfo.box.Box
com.bfo.box.ExtensionBox
com.bfo.box.C2PAContainerBox
A C2PAContainerBox wraps a
C2PAStore
inside a "uuid" box, for safe storage inside
an ISO BMFF-based file. It is described in the
C2PA Specification.- Since:
- 5
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
offset()
For boxes with a purpose of "manifest", return the absolute file byte offset to the first auxiliary "uuid" C2PA box with purpose equal to "merkle".purpose()
Return the box purpose, eg "manifest" or "merkle"toString()
Return a String representation of this Box, which will be parseable as JSONMethods inherited from class com.bfo.box.ExtensionBox
subtype
-
Constructor Details
-
C2PAContainerBox
public C2PAContainerBox()Create a new C2PAContainerBox
-
-
Method Details
-
purpose
Return the box purpose, eg "manifest" or "merkle"- Returns:
- the purpose
-
offset
public long offset()For boxes with a purpose of "manifest", return the absolute file byte offset to the first auxiliary "uuid" C2PA box with purpose equal to "merkle".- Returns:
- the offset as described or zero if not applicable.
-
toString
Description copied from class:Box
Return a String representation of this Box, which will be parseable as JSON- Overrides:
toString
in classExtensionBox
-