Package net.ontopia.infoset.content
Interface ContentStoreIF
- All Known Implementing Classes:
FileContentStore,InMemoryContentStore,JDBCContentStore,JDBCSequenceContentStore
public interface ContentStoreIF
INTERNAL: A simple content store interface that stores chunks of
data associated with an integer key. The underlying implementation
is responsible for creating the keys.
-
Method Summary
Modifier and TypeMethodDescriptionintadd(InputStream data, int length) INTERNAL: Creates an entry for the specified data value.intadd(ContentInputStream data) INTERNAL: Creates an entry for the specified data value.voidclose()INTERNAL: Closes the content store.booleancontainsKey(int key) INTERNAL: Returns true if the content store contains an entry with the specified key.get(int key) INTERNAL: Gets the data value associated with the specified key.booleanremove(int key) INTERNAL: Removes the entry associated with the key.
-
Method Details
-
containsKey
INTERNAL: Returns true if the content store contains an entry with the specified key.- Throws:
ContentStoreException
-
get
INTERNAL: Gets the data value associated with the specified key.- Throws:
ContentStoreException
-
add
INTERNAL: Creates an entry for the specified data value.- Throws:
ContentStoreException
-
add
INTERNAL: Creates an entry for the specified data value.- Throws:
ContentStoreException
-
remove
INTERNAL: Removes the entry associated with the key. If the key is not present the call has no effect.- Returns:
- true if the key was present; false otherwise
- Throws:
ContentStoreException
-
close
INTERNAL: Closes the content store. This allows all internal resources to be released.- Throws:
ContentStoreException
-