|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.io.formats.xml.cog.XMLCogStore
public class XMLCogStore
This is an implementation of CogStore that uses a file system and XML format to store and retrieve cog files. It allows both reading and writing, but you must turn on writing ability.
| Field Summary |
|---|
| Fields inherited from interface com.partnersoft.io.store.CogStore |
|---|
BIN, COG, NOT_FOUND |
| Constructor Summary | |
|---|---|
XMLCogStore(VFS vfs)
|
|
| 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 path)
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 XMLCogStore(VFS vfs)
| Method Detail |
|---|
public boolean isWritable()
CogStore
isWritable in interface CogStore
public Cog retrieveCog(java.lang.String path)
throws java.io.IOException
CogStore
retrieveCog in interface CogStorejava.io.IOException
public Cog retrieveCogOrNull(java.lang.String path)
throws java.io.IOException
CogStore
retrieveCogOrNull in interface CogStorejava.io.IOException
public void storeCog(java.lang.String path,
Cog cog)
throws java.io.IOException
CogStore
storeCog in interface CogStorejava.io.IOException
public int examine(java.lang.String path)
throws java.io.IOException
CogStore
examine in interface CogStorejava.io.IOException
public java.lang.String[] listContents(java.lang.String path)
throws java.io.IOException
CogStore
listContents in interface CogStorejava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||