Class MemoryCacheSeekableStream.MemoryCache

java.lang.Object
com.twelvemonkeys.io.AbstractCachedSeekableStream.StreamCache
com.twelvemonkeys.io.MemoryCacheSeekableStream.MemoryCache
Enclosing class:
MemoryCacheSeekableStream

static final class MemoryCacheSeekableStream.MemoryCache extends AbstractCachedSeekableStream.StreamCache
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) static final int
     
    private final List<byte[]>
     
    private long
     
    private long
     
    private long
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) void
     
    void
    flush(long pPosition)
    Optionally flushes any data prior to the given position.
    private byte[]
     
    long
    Returns the current cache read/write position.
    int
    Reads a single byte a the current read/write position.
    int
    read(byte[] pBytes, int pOffset, int pLength)
    Writes a series of bytes at the current read/write position.
    void
    seek(long pPosition)
    Repositions the current cache read/write position to the given position.
    void
    write(byte[] pBuffer, int pOffset, int pLength)
    Writes a series of bytes at the current read/write position.
    void
    write(int pByte)
    Writes a single byte at the current read/write position.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait