Sun SPOT API
Green Release  


com.sun.squawk
Class ResourceFile

java.lang.Object
  extended by com.sun.squawk.ResourceFile

public final class ResourceFile
extends Object

Stores a resource file (name and contents) in the suite file.

Author:
David Liu

Field Summary
static Comparer comparer
          Comparator for ResourceFile objects (which are sorted by the resource files).
 byte[] data
          The contents of the resource file.
 String name
          The name of the resource file, for example "example/chess/br.bishop.gif".
 
Constructor Summary
ResourceFile(String name, byte[] data)
          Creates a resource file object.
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public final String name
The name of the resource file, for example "example/chess/br.bishop.gif".


data

public final byte[] data
The contents of the resource file.


comparer

public static final Comparer comparer
Comparator for ResourceFile objects (which are sorted by the resource files).

Constructor Detail

ResourceFile

public ResourceFile(String name,
                    byte[] data)
Creates a resource file object.


Sun SPOT API
Green Release  


Copyright © 2006 Sun Microsystems, Inc. All Rights Reserved.