com.sentilla.platform.tmote
Class FileMapEntry

java.lang.Object
  extended by com.sentilla.platform.tmote.Action
      extended by com.sentilla.platform.tmote.FlashFile
          extended by com.sentilla.platform.tmote.FileMapEntry
All Implemented Interfaces:
com.sentilla.io.DataInput, com.sentilla.io.DataOutput, com.sentilla.io.DataRandomAccess, com.sentilla.io.Input, com.sentilla.io.InputStream, com.sentilla.io.ObjectInput, com.sentilla.io.ObjectOutput, com.sentilla.io.ObjectRandomAccess, com.sentilla.io.Output, com.sentilla.io.RandomAccessFile, Action

public class FileMapEntry
extends FlashFile

Provides the FlashFile API in a segment of another FlashFile


Field Summary
 
Fields inherited from class com.sentilla.platform.tmote.FlashFile
data, op, overwrite
 
Fields inherited from class com.sentilla.platform.tmote.Action
actionAuto, actionId, actionState, isolateOwner
 
Fields inherited from interface com.sentilla.system.Action
DONE, ERROR, IDLE, PENDING
 
Method Summary
 int getOffset()
           
 int length()
           
 int read(byte[] b, int offset, int length)
           
 Object readObject()
           
 void seek(int offset)
           
 void skip(int n)
           
 void write(byte[] b, int offset, int length)
           
 void writeObject(Object obj)
           
 
Methods inherited from class com.sentilla.platform.tmote.FlashFile
available, close, create, create, flush, getName, open, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readInt, readLong, readShort, readUnsignedByte, readUTF, remove, setOverwriteMode, write, write, writeBoolean, writeByte, writeChar, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
 
Methods inherited from class com.sentilla.platform.tmote.Action
block, block, cancel, getActionState, initAction, isDone, lookup, submit
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getOffset

public int getOffset()
Specified by:
getOffset in interface com.sentilla.io.DataRandomAccess
Overrides:
getOffset in class FlashFile

length

public int length()
Specified by:
length in interface com.sentilla.io.DataRandomAccess
Overrides:
length in class FlashFile

writeObject

public void writeObject(Object obj)
Specified by:
writeObject in interface com.sentilla.io.ObjectOutput
Overrides:
writeObject in class FlashFile

readObject

public Object readObject()
Specified by:
readObject in interface com.sentilla.io.ObjectInput
Overrides:
readObject in class FlashFile

read

public int read(byte[] b,
                int offset,
                int length)
         throws com.sentilla.io.IORuntimeException
Specified by:
read in interface com.sentilla.io.Input
Overrides:
read in class FlashFile
Throws:
com.sentilla.io.IORuntimeException

write

public void write(byte[] b,
                  int offset,
                  int length)
           throws com.sentilla.io.IORuntimeException
Specified by:
write in interface com.sentilla.io.Output
Overrides:
write in class FlashFile
Throws:
com.sentilla.io.IORuntimeException

skip

public void skip(int n)
          throws com.sentilla.io.IORuntimeException
Specified by:
skip in interface com.sentilla.io.Input
Overrides:
skip in class FlashFile
Throws:
com.sentilla.io.IORuntimeException

seek

public void seek(int offset)
Specified by:
seek in interface com.sentilla.io.DataRandomAccess
Overrides:
seek in class FlashFile


Copyright © 2007 Sentilla Corporation. All Rights Reserved.