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 Martin Geisler <gimpster@users.sourceforge.net>
  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., 59 Temple Place, Suite 330,
  21. * Boston, MA 02111-1307 USA
  22. */
  23.  
  24. /* PelJpegContent.php,v 1.8 2004/06/26 20:39:10 gimpster Exp */
  25.  
  26.  
  27. /**
  28. * Class representing content in a JPEG file.
  29. *
  30. * @author Martin Geisler <gimpster@users.sourceforge.net>
  31. * @version 1.8
  32. * @date 2004/06/26 20:39:10
  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. ('PelDataWindow.php');
  40. /**#@-*/ * Class representing content in a JPEG file.
  41. *
  42. * A JPEG file consists of a sequence of each of which has an
  43. * associated {@link PelJpegMarker marker} and some content. This
  44. * class represents the content, and this basic type is just a simple
  45. * holder of such content, represented by a {@link PelDataWindow}
  46. * object. The {@link PelExif} class is an example of more
  47. * specialized JPEG content.
  48. *
  49. * @author Martin Geisler <gimpster@users.sourceforge.net>
  50. * @package PEL
  51. */
  52. class PelJpegContent {
  53. private $data = null;
  54.  
  55. /**
  56. * Make a new piece of JPEG content.
  57. *
  58. * @param PelDataWindow the content.
  59. */
  60. function __construct(PelDataWindow $data) {
  61. $this->data = $data;
  62. }
  63.  
  64. /**
  65. * Return the bytes of the content.
  66. *
  67. * @return string the content.
  68. */
  69. function getBytes() {
  70. return $this->data->getBytes();
  71. }
  72.  
  73. /**
  74. * Return the size of the content.
  75. *
  76. * @return int the size.
  77. */
  78. function getSize() {
  79. return $this->data->getSize();
  80. }
  81.  
  82. }
  83.  
  84. ?>

SourceForge.net Logo Documentation generated on Wed, 21 Jul 2004 19:13:13 +0200 by phpDocumentor 1.3.0RC3