package com.kryptnostic.kodex.v1.storage;

import java.io.IOException;

public interface DataStore {
    /**
     * Retrieves data previously stored with key, null if there is no data corresponding to this key.
     * 
     * @param key the unique identifier for the object to be retrieved.
     * @return the data stored at this location, or null if there is none.
     */
    byte[] get( String dir, String file ) throws IOException;

    byte[] get( String file ) throws IOException;

    /**
     * Stores data at the location specified by key.
     * 
     * @param key the unique identifier for the object to be stored.
     * @param value the data to be stored.
     */
    void put( String dir, String file, byte[] value ) throws IOException;

    void put( String file, byte[] value ) throws IOException;
}

@@ -230,65 +230,70 @@
 ram 
-key the unique identifier for the object to be retrieved.
+dir Directory. Can be null%0A     * @param file Must not be null
 %0A   
@@ -364,16 +364,43 @@
 s none.%0A
+     * @throws IOException%0A
      */%0A
@@ -458,24 +458,288 @@
 Exception;%0A%0A
+    /**%0A     * Retrieves data previously stored with key, null if there is no data corresponding to this key.%0A     * %0A     * @param file Must not be null%0A     * @return the data stored at this location, or null if there is none.%0A     * @throws IOException%0A     */%0A
     byte%5B%5D g
@@ -864,62 +864,70 @@
 ram 
-key the unique identifier for the object to be stored.
+dir Directory. Can be null%0A     * @param file Must not be null
 %0A   
@@ -966,16 +966,43 @@
 stored.%0A
+     * @throws IOException%0A
      */%0A
@@ -1072,24 +1072,207 @@
 Exception;%0A%0A
+    /**%0A     * Stores data at the location specified by key.%0A     * %0A     * @param file Must not be null%0A     * @param value the data to be stored.%0A     * @throws IOException%0A     */%0A
     void put

fix javadoc