|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ISourceIO
Implementors translate IContent objects to and from streams in
an ISource.
ISource| Method Summary | |
|---|---|
IContent |
get(SourceKey key)
Returns the IContent object
associated with the specified key, or null
if none is found. |
MurqSource |
getMurqSource()
Returns the MurqSource this instance is
handling IO for. |
void |
init(MurqSource src)
First call made after instantiation allowing for any setup that my be needed. |
void |
put(IContent content)
Writes the provided content. |
boolean |
remove(SourceKey key)
Returns true if the content associated with the specified
key is removed, false if the
key is not found. |
| Method Detail |
|---|
void init(MurqSource src)
throws IOException
src - the
IOException - if there is a problem during initialization.
IllegalStateException - if called more than once.
IllegalArgumentException - if source is null.MurqSource getMurqSource()
MurqSource this instance is
handling IO for.
MurqSource this instance is
handling IO for.
void put(IContent content)
throws IOException
content.
content - the content to be persisted.
IOException - if an error is encountered during persistance.
IllegalStateException - if init has not been called yet.
IllegalArgumentException - if content is null.
IContent get(SourceKey key)
throws IOException
IContent object
associated with the specified key, or null
if none is found.
key - the unique identifier associated with the content.
IContent object
associated with the specified key, or
null if none is found.
IOException - if an error is encountered while retrieving the content.
IllegalStateException - if init has not been called yet.
IllegalArgumentException - if key is null.
boolean remove(SourceKey key)
throws IOException
true if the content associated with the specified
key is removed, false if the
key is not found.
key - key for the content to be removed.
true if the specified content is
removed, false if the content is not found.
IOException - if an error is encountered during removal.
IllegalStateException - if init has not been called yet.
IllegalArgumentException - if key is null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||