Interface MutableArea

All Superinterfaces:
Area

public interface MutableArea extends Area
An interface for an area that can be modified. Any changes made to an area may or may not be immediately reflected in already open areas with the same id. The specification does guarentee that after the 'checkOutAndClose' method is invoked that any new Area or MutableArea objects created by the backing store will contain the changes.
Author:
Tobias Downer
  • Method Details

    • checkOut

      void checkOut() throws IOException
      Checks out all changes made to this area. This should be called after a series of updates have been made to the area and the final change is to be 'finalized'. When this method returns, any new Area or MutableArea objects created by the backing store will contain the changes made to this object. Any changes made to the Area may or may not be made to any already existing areas.

      In a logging implementation, this may flush out the changes made to the area in a log.

      Throws:
      IOException
    • put

      void put(byte b) throws IOException
      Throws:
      IOException
    • put

      void put(byte[] buf, int off, int len) throws IOException
      Throws:
      IOException
    • put

      void put(byte[] buf) throws IOException
      Throws:
      IOException
    • putShort

      void putShort(short s) throws IOException
      Throws:
      IOException
    • putInt

      void putInt(int i) throws IOException
      Throws:
      IOException
    • putLong

      void putLong(long l) throws IOException
      Throws:
      IOException
    • putChar

      void putChar(char c) throws IOException
      Throws:
      IOException