edu.wisc.trace.urcsdk.client.resources
Class ImageResource

java.lang.Object
  extended by edu.wisc.trace.urcsdk.client.resources.AbstractResource
      extended by edu.wisc.trace.urcsdk.client.resources.ImageResource
All Implemented Interfaces:
IResource

public class ImageResource
extends AbstractResource

ImageResource is the type of resource that applies to images. Images are created by passing a byte array to the constructor, so any image that Java supports (and can be retrieved as a byte array) is a valid image resource.

Version:
$Revision: 1.21 $
Author:
Andrew Martin, Trace R&D Center Created on: Oct 29, 2004

Field Summary
 
Fields inherited from class edu.wisc.trace.urcsdk.client.resources.AbstractResource
elementRef, operationRef, properties, value, valueRef
 
Fields inherited from interface edu.wisc.trace.urcsdk.client.resources.IResource
EMPTY_RESOURCE
 
Constructor Summary
ImageResource(byte[] bytes, ElementRef elementRef, java.lang.String valueRef, java.lang.String operationRef, Constants.ResourceRole role, java.util.List<java.lang.String> langs)
          Creates a new ImageResource instance.
 
Method Summary
 java.lang.String toString()
          String representation of this Object.
 
Methods inherited from class edu.wisc.trace.urcsdk.client.resources.AbstractResource
addProperty, addProperty, equals, getElementRef, getFormat, getLangs, getOperationRef, getPropertiesMap, getProperty, getRole, getType, getValue, getValueRef
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImageResource

public ImageResource(byte[] bytes,
                     ElementRef elementRef,
                     java.lang.String valueRef,
                     java.lang.String operationRef,
                     Constants.ResourceRole role,
                     java.util.List<java.lang.String> langs)
Creates a new ImageResource instance.

Parameters:
bytes - a byte[] value
Method Detail

toString

public java.lang.String toString()
Description copied from interface: IResource
String representation of this Object.

Specified by:
toString in interface IResource
Specified by:
toString in class AbstractResource
Returns:
a String value


Copyright © 2006 Trace R&D Center, University of Wisconsin-Madison. All Rights Reserved.