com.gc.iotools.stream.store
Interface SeekableStore

All Superinterfaces:
Store
All Known Implementing Classes:
MemoryStore, OnOffStore, ThresholdStore

public interface SeekableStore
extends Store

Represents a Store that can be seeked to a random position.

All the data passed to this store must be remembered until Store.cleanup() is invoked, in case a seek(long) repositions on pa previously read data.

Since:
1.2.0
Version:
$Id: SeekableStore.java 463 2011-01-21 23:54:17Z dvd.smnt@gmail.com $
Author:
dvd.smnt
See Also:
Store

Method Summary
 void seek(long position)
          Reposition this Store on a previously read position.
 
Methods inherited from interface com.gc.iotools.stream.store.Store
cleanup, get, put
 

Method Detail

seek

void seek(long position)
          throws IOException
Reposition this Store on a previously read position.

Parameters:
position - position to read the data from.
Throws:
IOException - If some error in the internal store happens.
EOFException - If a position is greater than the actual Store size.


Copyright © 2008-2011. All Rights Reserved.