SunSPOT API V6.0


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.


Field Summary
 byte[] data
           
protected  boolean isNew
           
protected  boolean isPersistent
           
protected  int length
           
 String name
           
 
Constructor Summary
ResourceFile(String name, boolean isPersistent)
           
ResourceFile(String name, byte[] data)
          Creates a resource file object.
 
Method Summary
 void close()
           
 byte[] getData()
           
 void write(int index, byte byt)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

public byte[] data

isNew

protected boolean isNew

isPersistent

protected boolean isPersistent

length

protected int length

name

public final String name
Constructor Detail

ResourceFile

public ResourceFile(String name,
                    boolean isPersistent)

ResourceFile

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

Parameters:
name - resource name
data - resource data
Method Detail

close

public void close()

getData

public byte[] getData()

write

public void write(int index,
                  byte byt)

SunSPOT API V6.0


Copyright © 2006-2010 Oracle. All Rights Reserved.