jet.utils
Class Resource

java.lang.Object
  extended by jet.utils.Resource
All Implemented Interfaces:
java.io.Serializable

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

ValueHolder Class

Author:
markus.meisters@web.de
See Also:
Serialized Form

Field Summary
private  byte[] bytes
          Content
private  java.lang.String contentType
          content type of resource
private  java.lang.String resourcename
          resource name
 
Constructor Summary
Resource(java.lang.String resourcename)
           
Resource(java.lang.String resourcename, java.lang.String contentType, byte[] bytes)
          Constructor
 
Method Summary
 byte[] getBytes()
          Returns the bytes of the resource
 java.lang.String getContentType()
          returns the content type
 java.lang.String getResourceName()
          Returns the reource name
 void setBytes(byte[] bytes)
           
 void setContentType(java.lang.String contentType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bytes

private byte[] bytes
Content


resourcename

private java.lang.String resourcename
resource name


contentType

private java.lang.String contentType
content type of resource

Constructor Detail

Resource

public Resource(java.lang.String resourcename)

Resource

public Resource(java.lang.String resourcename,
                java.lang.String contentType,
                byte[] bytes)
Constructor

Parameters:
resourcename -
contentType -
bytes -
Method Detail

getBytes

public byte[] getBytes()
Returns the bytes of the resource

Returns:
byte byte array

getResourceName

public java.lang.String getResourceName()
Returns the reource name

Returns:
String the name of the resource

getContentType

public java.lang.String getContentType()
returns the content type

Returns:
String content type

setBytes

public void setBytes(byte[] bytes)
Parameters:
bytes - the bytes to set

setContentType

public void setContentType(java.lang.String contentType)
Parameters:
contentType - the contentType to set