com.crankuptheamps.client
Interface BlockPublishStore.Buffer

All Known Implementing Classes:
ArrayStoreBuffer, MemoryStoreBuffer
Enclosing class:
BlockPublishStore

public static interface BlockPublishStore.Buffer


Method Summary
 byte getByte()
           
 void getBytes(BlockPublishStore.ByteSequence outBytes)
           
 int getInt()
           
 long getLong()
           
 long getPosition()
           
 long getSize()
           
 void putByte(byte b)
           
 void putBytes(BlockPublishStore.ByteSequence bytes)
           
 void putInt(int i)
           
 void putLong(long l)
           
 void setPosition(long position)
           
 void setResizeHandler(PublishStoreResizeHandler handler, Store store)
           
 void setSize(long newSize)
           
 void zero(long offset, int length)
           
 

Method Detail

getSize

long getSize()
             throws IOException
Throws:
IOException

setSize

void setSize(long newSize)
             throws IOException
Throws:
IOException

getPosition

long getPosition()
                 throws IOException
Throws:
IOException

setPosition

void setPosition(long position)
                 throws IOException
Throws:
IOException

putByte

void putByte(byte b)
             throws IOException
Throws:
IOException

getByte

byte getByte()
             throws IOException
Throws:
IOException

putInt

void putInt(int i)
            throws IOException
Throws:
IOException

getInt

int getInt()
           throws IOException
Throws:
IOException

putLong

void putLong(long l)
             throws IOException
Throws:
IOException

getLong

long getLong()
             throws IOException
Throws:
IOException

putBytes

void putBytes(BlockPublishStore.ByteSequence bytes)
              throws IOException
Throws:
IOException

getBytes

void getBytes(BlockPublishStore.ByteSequence outBytes)
              throws IOException
Throws:
IOException

zero

void zero(long offset,
          int length)
          throws IOException
Throws:
IOException

setResizeHandler

void setResizeHandler(PublishStoreResizeHandler handler,
                      Store store)