org.erowid.sperosearch.splitindex
Class SplitIndexFileInputStream
java.lang.Object
java.io.InputStream
org.erowid.sperosearch.splitindex.SplitIndexFileInputStream
- All Implemented Interfaces:
- Cloneable
- public class SplitIndexFileInputStream
- extends InputStream
- implements Cloneable
Random access file over a set of compressed segment files.
- Version:
- : $Header: /cvsroot/sperowider/SPEROWIDER_MODULE/javasource/org/erowid/sperosearch/splitindex/SplitIndexFileInputStream.java,v 1.1 2005/06/02 06:07:58 gurustu Exp $
- Author:
- : $Author: gurustu $
SplitIndexFileInputStream
public SplitIndexFileInputStream(SplitIndexFileDescriptor descriptor,
SplitIndexSegmentFactory segmentFactory)
- Creates a(n) SplitFileInputStream object.
getDescriptor
public SplitIndexFileDescriptor getDescriptor()
- Returns the descriptor.
clone
public Object clone()
throws CloneNotSupportedException
- Throws:
CloneNotSupportedException
available
public int available()
throws IOException
- Throws:
IOException
mark
public void mark(int readlimit)
markSupported
public boolean markSupported()
read
public int read()
throws IOException
- Throws:
IOException
reset
public void reset()
throws IOException
- Throws:
IOException
skip
public long skip(long n)
throws IOException
- Throws:
IOException
seek
public void seek(long n)
throws IOException
- Skips to the position.
- Throws:
IOException
close
public void close()
throws IOException
- Throws:
IOException
getLength
public long getLength()
- Returns the length.