net.obsearch
Interface Storable

All Known Subinterfaces:
OB, OBByte, OBDouble, OBFloat, OBInt, OBLong, OBShort
All Known Implementing Classes:
OBSlice, OBVectorByte, OBVectorDouble, OBVectorFloat, OBVectorInt, OBVectorLong, OBVectorShort

public interface Storable

Interface that abstracts the general storage and loading methods used to persist objects.

Since:
0.7
Author:
Arnoldo Jose Muller Molina

Method Summary
 void load(byte[] input)
          Populates the object's internal properties from the given byte stream.
 byte[] store()
          Stores this object in a byte array.
 

Method Detail

store

byte[] store()
             throws OBException,
                    IOException
Stores this object in a byte array.

Parameters:
out - A DataOutputStream where values can be stored
Throws:
OBException
IOException
Since:
0.0

load

void load(byte[] input)
          throws OBException,
                 IOException
Populates the object's internal properties from the given byte stream.

Parameters:
input - byte array from where we will load data.
Throws:
OBException - if the data cannot be loaded.
IOException
Since:
0.0


Copyright © 2007-2011 Arnoldo Jose Muller Molina. All Rights Reserved.