XML Box forms may be used. * The 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_BXML extends ISO14496_Box_Full { /** @var string */ private $_data; /** * 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->_data = $this->_reader->read ($this->getOffset() + $this->getSize() - $this->_reader->getOffset()); } /** * Returns the binary data. * * @return string */ public function getData() { return $this->_data; } }