Source for file PelJpegContent.php

Documentation is available at PelJpegContent.php

  1. <?php
  2.  
  3. /*  PEL: PHP Exif Library.  A library with support for reading and
  4.  *  writing all Exif headers in JPEG and TIFF images using PHP.
  5.  *
  6.  *  Copyright (C) 2004, 2005  Martin Geisler.
  7.  *
  8.  *  This program is free software; you can redistribute it and/or modify
  9.  *  it under the terms of the GNU General Public License as published by
  10.  *  the Free Software Foundation; either version 2 of the License, or
  11.  *  (at your option) any later version.
  12.  *
  13.  *  This program is distributed in the hope that it will be useful,
  14.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.  *  GNU General Public License for more details.
  17.  *
  18.  *  You should have received a copy of the GNU General Public License
  19.  *  along with this program in the file COPYING; if not, write to the
  20.  *  Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
  21.  *  Boston, MA 02110-1301 USA
  22.  */
  23.  
  24. /* $Id$ */
  25.  
  26.  
  27. /**
  28.  * Class representing content in a JPEG file.
  29.  *
  30.  * @author Martin Geisler <mgeisler@users.sourceforge.net>
  31.  * @version $Revision$
  32.  * @date $Date$
  33.  * @license http://www.gnu.org/licenses/gpl.html GNU General Public
  34.  *  License (GPL)
  35.  * @package PEL
  36.  */
  37.  
  38. /**#@+ Required class definitions. */
  39. require_once('PelDataWindow.php');
  40. /**#@-*/
  41.  
  42.  
  43. /**
  44.  * Class representing content in a JPEG file.
  45.  *
  46.  * A JPEG file consists of a sequence of each of which has an
  47.  * associated {@link PelJpegMarker marker} and some content.  This
  48.  * class represents the content, and this basic type is just a simple
  49.  * holder of such content, represented by a {@link PelDataWindow}
  50.  * object.  The {@link PelExif} class is an example of more
  51.  * specialized JPEG content.
  52.  *
  53.  * @author Martin Geisler <mgeisler@users.sourceforge.net>
  54.  * @package PEL
  55.  */
  56. class PelJpegContent {
  57.   private $data null;
  58.  
  59.   /**
  60.    * Make a new piece of JPEG content.
  61.    *
  62.    * @param PelDataWindow the content.
  63.    */
  64.   function __construct(PelDataWindow $data{
  65.     $this->data $data;
  66.   }
  67.  
  68.   
  69.   /**
  70.    * Return the bytes of the content.
  71.    *
  72.    * @return string bytes representing this JPEG content.  These bytes
  73.    *  will match the bytes given to {@link __construct the}
  74.    *  constructor}.
  75.    */
  76.   function getBytes({
  77.     return $this->data->getBytes();
  78.   }
  79.  
  80. }
  81.  
  82. ?>

Documentation generated on Thu, 05 May 2011 07:19:19 +0200 by phpDocumentor 1.4.3