|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.io.store.PreferencesCogStore
public class PreferencesCogStore
A CogStore that stores stuff in Java preferences.
| Field Summary |
|---|
| Fields inherited from interface com.partnersoft.io.store.CogStore |
|---|
BIN, COG, NOT_FOUND |
| Constructor Summary | |
|---|---|
PreferencesCogStore()
|
|
| Method Summary | |
|---|---|
int |
examine(java.lang.String path)
Returns type of node for path - either NOT_FOUND, COG, or BIN. |
boolean |
isWritable()
Returns true if you can write to this store. |
java.lang.String[] |
listContents(java.lang.String binPath)
Lists the contents for the given bin node. |
Cog |
retrieveCog(java.lang.String path)
Retreives a cog from storage. |
Cog |
retrieveCogOrNull(java.lang.String path)
Retreives a cog from storage. |
void |
storeCog(java.lang.String path,
Cog cog)
Stores a cog, replacing the current one at that location and creating any missing bins needed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PreferencesCogStore()
| Method Detail |
|---|
public boolean isWritable()
isWritable in interface CogStore
public Cog retrieveCog(java.lang.String path)
throws java.io.IOException
retrieveCog in interface CogStorejava.io.IOException
public Cog retrieveCogOrNull(java.lang.String path)
throws java.io.IOException
retrieveCogOrNull in interface CogStorejava.io.IOException
public void storeCog(java.lang.String path,
Cog cog)
throws java.io.IOException
storeCog in interface CogStorejava.io.IOException
public int examine(java.lang.String path)
throws java.io.IOException
examine in interface CogStorejava.io.IOException
public java.lang.String[] listContents(java.lang.String binPath)
throws java.io.IOException
listContents in interface CogStorejava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||