com.imagero.uio.bio
Class IOController

java.lang.Object
  extended bycom.imagero.uio.bio.IOController

public class IOController
extends java.lang.Object

Buffer controller. IOController loads data from Content and maintains buffers (FixedSizeBuffer).


Constructor Summary
IOController(int bufferSize, Content content)
           
 
Method Summary
protected  void finalize()
           
 long flushBefore(long pos)
           
 FixedSizeByteBuffer getBuffer(long pos)
           
 com.imagero.uio.bio.BufferIndex getBufferIndex(long pos)
           
 long getStartOffset(com.imagero.uio.bio.BufferIndex bufferIndex, int bufferSize)
           
 boolean isSynchronizedContent()
          determine if access to stream content is synchronized
protected  void setBuffer(com.imagero.uio.bio.BufferIndex index, FixedSizeByteBuffer buffer)
           
 void setSynchronizedContent(boolean b)
          define if access to content should be syncronized.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOController

public IOController(int bufferSize,
                    Content content)
Method Detail

setBuffer

protected void setBuffer(com.imagero.uio.bio.BufferIndex index,
                         FixedSizeByteBuffer buffer)

flushBefore

public long flushBefore(long pos)

getBufferIndex

public com.imagero.uio.bio.BufferIndex getBufferIndex(long pos)

getBuffer

public FixedSizeByteBuffer getBuffer(long pos)

getStartOffset

public long getStartOffset(com.imagero.uio.bio.BufferIndex bufferIndex,
                           int bufferSize)

isSynchronizedContent

public boolean isSynchronizedContent()
determine if access to stream content is synchronized


setSynchronizedContent

public void setSynchronizedContent(boolean b)
define if access to content should be syncronized.


finalize

protected void finalize()
                 throws java.lang.Throwable
Throws:
java.lang.Throwable