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

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

public class VectorFileRandomAccess
extends Object

Vector File random access

Author:
UoA

Constructor Summary
VectorFileRandomAccess(VAFileParams params)
          Creates a new instance
 
Method Summary
 void close()
          Closes
 void moveTo(long recNum)
          Move to the specified record
 void open()
          Opens
 VectorFileEntry read()
          Reads an entry
 void write(VectorFileEntry entry)
          Writes an entry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VectorFileRandomAccess

public VectorFileRandomAccess(VAFileParams params)
                       throws Exception
Creates a new instance

Parameters:
params - Teh VAFile parameters
Throws:
Exception - An error
Method Detail

open

public void open()
          throws Exception
Opens

Throws:
Exception - An error

moveTo

public void moveTo(long recNum)
            throws Exception
Move to the specified record

Parameters:
recNum - The record number
Throws:
Exception - An error

write

public void write(VectorFileEntry entry)
           throws Exception
Writes an entry

Parameters:
entry - The entry
Throws:
Exception - An error

read

public VectorFileEntry read()
                     throws Exception
Reads an entry

Returns:
The entry
Throws:
Exception - An error

close

public void close()
           throws Exception
Closes

Throws:
Exception - An error


Copyright © 2012. All Rights Reserved.