org.springframework.samples.petportal.domain
Class PetDescription

java.lang.Object
  extended by org.springframework.samples.petportal.domain.PetDescription
All Implemented Interfaces:
java.io.Serializable

public class PetDescription
extends java.lang.Object
implements java.io.Serializable

The PetDescription stores a file's contents as an array of bytes. It is used to demonstrate file upload from within a portlet.

Author:
John A. Lewis, Mark Fisher
See Also:
Serialized Form

Constructor Summary
PetDescription()
           
PetDescription(byte[] file)
           
 
Method Summary
 byte[] getFile()
          Return the file as a byte array.
 void setFile(byte[] file)
          Set the file as a byte array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PetDescription

public PetDescription()

PetDescription

public PetDescription(byte[] file)
Method Detail

setFile

public void setFile(byte[] file)
Set the file as a byte array.


getFile

public byte[] getFile()
Return the file as a byte array.



John A. Lewis, Mark Fisher, Juergen Hoeller