org.gcube.indexmanagement.featureindexlibrary.vafile.io
Class FileBufferReader

java.lang.Object
  extended by org.gcube.indexmanagement.featureindexlibrary.vafile.io.FileBufferReader

public class FileBufferReader
extends Object

B uffer reader class

Author:
UoA

Constructor Summary
FileBufferReader(String file, VAFileParams params)
          Creates a new instance
 
Method Summary
 void close()
          Closes
 void openForReading()
          Opens for reading
 FeatureVectorElement readElement()
          Reads element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileBufferReader

public FileBufferReader(String file,
                        VAFileParams params)
Creates a new instance

Parameters:
file - The file
params - The VAFile header params
Method Detail

openForReading

public void openForReading()
                    throws Exception
Opens for reading

Throws:
Exception - An error

readElement

public FeatureVectorElement readElement()
Reads element

Returns:
The element

close

public void close()
           throws Exception
Closes

Throws:
Exception - An error


Copyright © 2012. All Rights Reserved.