com.imagero.uio.bio
Class IOController
java.lang.Object
com.imagero.uio.bio.IOController
- public class IOController
- extends java.lang.Object
Buffer controller.
IOController loads data from Content and maintains buffers (FixedSizeBuffer).
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IOController
public IOController(int bufferSize,
Content content)
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