Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| " 2013 FRC Java API "
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sun.squawk.peripheral
Interface INorFlashSectorAllocator

All Superinterfaces:
  IPeripheral

All Known Implementing Classes:
  SimulatedNorFlashSectorAllocator

    public interface INorFlashSectorAllocator

extends IPeripheral

INorFlashSectorAllocator is part of the implementation of the Record Management Store (see `RecordStore`). It should not be used for other purposes.

Method Summary
`INorFlashSector` | `getExtraSector(int purpose)`
`INorFlashSector[]` | `getInitialSectors(int purpose)`
`void` | `releaseSector(INorFlashSector sector, int purpose)` Notify the allocator that a previously allocated sector is no longer required

Method Detail

### getInitialSectors

    INorFlashSector[] getInitialSectors(int purpose)
                                        throws IOException

  Parameters:
    `purpose` - code (defined in `INorFlashSector`) indicating purpose of sectors
  Returns:
    the sectors that were in use for this purpose at the time of the last VM exit
  Throws:
    `InsufficientFlashMemoryException`
    `IOException`

### getExtraSector

    INorFlashSector getExtraSector(int purpose)
                                   throws InsufficientFlashMemoryException

  Parameters:
    `purpose` - code (defined in `INorFlashSector`) indicating purpose of sector
  Returns:
    a free sector
  Throws:
    `InsufficientFlashMemoryException`

### releaseSector

    void releaseSector(INorFlashSector sector,
                       int purpose)

  Notify the allocator that a previously allocated sector is no longer required

  Parameters:
    `sector` - the sector to free
    `purpose` - code (defined in `INorFlashSector`) indicating purpose of sector

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| " 2013 FRC Java API "
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

"
For updated information see the Java FRC site
"