|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.binaryfantasy.murq.source.io.XStreamSourceIO
public final class XStreamSourceIO
Translates IContent objects to and
from streams in an ISource using
XStream.
| Constructor Summary | |
|---|---|
XStreamSourceIO()
Constructs a new XStreamSourceIO to handle
IContent object translation using
XStream encoding. |
|
| Method Summary | |
|---|---|
void |
close()
|
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. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XStreamSourceIO()
throws IOException
XStreamSourceIO to handle
IContent object translation using
XStream encoding.
IOException| Method Detail |
|---|
public MurqSource getMurqSource()
ISourceIOMurqSource this instance is
handling IO for.
getMurqSource in interface ISourceIOMurqSource this instance is
handling IO for.
public void init(MurqSource src)
throws IOException
ISourceIO
init in interface ISourceIOsrc - the
IOException - if there is a problem during initialization.
public void close()
throws IOException
IOException
public boolean remove(SourceKey key)
throws IOException
ISourceIOtrue if the content associated with the specified
key is removed, false if the
key is not found.
remove in interface ISourceIOkey - 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.
public void put(IContent content)
throws IOException
ISourceIOcontent.
put in interface ISourceIOcontent - the content to be persisted.
IOException - if an error is encountered during persistance.
public IContent get(SourceKey key)
throws IOException
ISourceIOIContent object
associated with the specified key, or null
if none is found.
get in interface ISourceIOkey - 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.public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||