|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.indexmanagement.featureindexlibrary.vafile.io.IOHelper
public class IOHelper
IO Helper class
| Constructor Summary | |
|---|---|
IOHelper()
Creates a new instance |
|
| Method Summary | |
|---|---|
ApproximationFileEntry |
readApproximation(DataInputStream in)
Reads an approximation |
ApproximationFileEntry |
readApproximation(RandomAccessFile rand)
Reads an approximation |
VAFileParams |
readHeader(RandomAccessFile rand)
Reads a header |
VectorFileEntry |
readRecord(DataInputStream in)
Reads a record |
VectorFileEntry |
readRecord(RandomAccessFile rand)
Reads a record |
void |
setIDLength(int idlength)
Sets the property value |
void |
setVectorLength(int vectorlength)
Sets the property value |
void |
skipHeader(RandomAccessFile rand)
Skips the header |
void |
writeApproximation(ApproximationFileEntry entry,
RandomAccessFile rand)
Writes an Approximation |
void |
writeHeader(VAFileParams params,
RandomAccessFile rand)
Writes the header |
void |
writeRecord(VectorFileEntry entry,
RandomAccessFile rand)
Writes a record |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IOHelper()
| Method Detail |
|---|
public void setIDLength(int idlength)
throws Exception
idlength - The property value
Exception - An error
public void setVectorLength(int vectorlength)
throws Exception
vectorlength - The property value
Exception - An error
public void writeHeader(VAFileParams params,
RandomAccessFile rand)
throws Exception
params - The VAFile header paramsrand - The pointer
Exception - An error
public void skipHeader(RandomAccessFile rand)
throws Exception
rand - The pointer
Exception - An error
public VAFileParams readHeader(RandomAccessFile rand)
throws Exception
rand - The pointer
Exception - An error
public void writeApproximation(ApproximationFileEntry entry,
RandomAccessFile rand)
throws Exception
entry - The entryrand - The pointer
Exception - An errorpublic ApproximationFileEntry readApproximation(RandomAccessFile rand)
rand - The pointer
public ApproximationFileEntry readApproximation(DataInputStream in)
in - The pointer
public void writeRecord(VectorFileEntry entry,
RandomAccessFile rand)
throws Exception
entry - The entryrand - The pointer
Exception - An errorpublic VectorFileEntry readRecord(RandomAccessFile rand)
rand - The pointer
public VectorFileEntry readRecord(DataInputStream in)
in - The pointer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||