XML Box forms may be used. * The {@link ISO14496_Box_BXML Binary XML Box} may only be used when there is a * single well-defined binarization of the XML for that defined format as * identified by the handler. * * Within an XML box the data is in UTF-8 format unless the data starts with a * byte-order-mark (BOM), which indicates that the data is in UTF-16 format. * * @package php-reader * @subpackage ISO 14496 * @author Sven Vollbehr * @copyright Copyright (c) 2008 The PHP Reader Project Workgroup * @license http://code.google.com/p/php-reader/wiki/License New BSD License * @version $Rev: 92 $ */ final class ISO14496_Box_XML extends ISO14496_Box_Full { /** @var string */ private $_xml; /** * Constructs the class with given parameters and reads box related data from * the ISO Base Media file. * * @param Reader $reader The reader object. */ public function __construct($reader, &$options = array()) { parent::__construct($reader, $options); $this->_xml = $this->_reader->read ($this->getOffset() + $this->getSize() - $this->_reader->getOffset()); } /** * Returns the XML data. * * @return string */ public function getXml() { return $this->_xml; } }