org.erowid.sperosearch.splitindex
Class SplitIndexFileInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byorg.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 $

Constructor Summary
SplitIndexFileInputStream(SplitIndexFileDescriptor descriptor, SplitIndexSegmentFactory segmentFactory)
          Creates a(n) SplitFileInputStream object.
 
Method Summary
 int available()
           
 Object clone()
           
 void close()
           
 SplitIndexFileDescriptor getDescriptor()
          Returns the descriptor.
 long getLength()
          Returns the length.
 void mark(int readlimit)
           
 boolean markSupported()
           
 int read()
           
 void reset()
           
 void seek(long n)
          Skips to the position.
 long skip(long n)
           
 
Methods inherited from class java.io.InputStream
read, read
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SplitIndexFileInputStream

public SplitIndexFileInputStream(SplitIndexFileDescriptor descriptor,
                                 SplitIndexSegmentFactory segmentFactory)
Creates a(n) SplitFileInputStream object.

Method Detail

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.


spero logo small Sperowider is
© 2005 Erowid.org