SunSPOT host API V3.0


com.sun.spot.client.command
Class FlashSectorContents

java.lang.Object
  extended by com.sun.spot.client.command.FlashSectorContents

public class FlashSectorContents
extends Object

FlashSectorContents is a helper object for ReadSectorCommand. It encapsulates the byte array of data from a flash sector and provides a helpful implementation of Object.toString().


Constructor Summary
FlashSectorContents(int sectorNumber, byte[] contents)
          Normal constructor
 
Method Summary
 byte[] getContents()
           
 int getSectorNumber()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FlashSectorContents

public FlashSectorContents(int sectorNumber,
                           byte[] contents)
Normal constructor

Parameters:
sectorNumber - the number of the sector in the flash device
contents - the content of the sector
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getContents

public byte[] getContents()

getSectorNumber

public int getSectorNumber()

SunSPOT host API V3.0


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