|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.penguinwerks.jodene.managers.GenericManager
This is generic manager of objects inside the vault.
| Constructor Summary | |
GenericManager()
Creates a new instance of GenericManager |
|
| Method Summary | |
void |
addObject(java.io.Serializable obj,
DataStorageTag tag,
java.lang.String name)
Add a managed object, passing in the object, the storage tag and the object name as a string. |
void |
addObject(java.io.Serializable obj,
java.lang.String name)
Add an object to be managed by the manager, passing in the object and the name. |
void |
cleanVault(java.lang.String extension)
Cleans out the vault for the given file extension. |
java.lang.String |
getExtension()
Returns the extension the manager will use. |
java.lang.Object |
getObject(java.lang.String name)
Return an object from the vault. |
DataStorageTag |
getStorageTag(java.lang.String name)
Returns the data storage tag for this object. |
java.lang.String |
getVaultDirectory()
Returns the vault directory. |
java.util.List |
listFilenames()
Lists the names of the stored objects. |
void |
removeFile(java.lang.String name)
Removes the object from the vault. |
void |
setExtension(java.lang.String extension)
Sets the file extension of the type of data to be stored. |
void |
setVaultDirectory(java.lang.String path)
Sets the path to the object vault. |
void |
updateFile(java.io.Serializable data,
DataStorageTag tag,
java.lang.String name)
Update the file with the given name, with new data storage tag and new data. |
void |
updateFile(java.lang.String name,
java.io.Serializable data)
Update the object with the given name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GenericManager()
| Method Detail |
public void setExtension(java.lang.String extension)
extension - The file extension.public java.lang.String getExtension()
public void addObject(java.io.Serializable obj,
DataStorageTag tag,
java.lang.String name)
throws java.io.IOException,
java.io.FileNotFoundException
obj - The object.tag - The data storage tab.name - The name used to identify the object.
IOException - Thrown if there is a problem saving the object.
FileNotFoundException - Thrown if there is a problem saving the object.
public void addObject(java.io.Serializable obj,
java.lang.String name)
throws java.io.FileNotFoundException,
java.io.IOException,
java.lang.ClassNotFoundException
obj - The object to maange.name - The name of the object.
FileNotFoundException - Thrown if there is a problem saving object.
IOException - Thrown if there is a problem saving the object.
java.lang.ClassNotFoundException - Thrown if there is a problem saving the object.public void cleanVault(java.lang.String extension)
extension - The file extension to remove.
public java.lang.Object getObject(java.lang.String name)
throws java.io.IOException,
java.lang.ClassNotFoundException
name - The name of the object.
IOException - Thrown if there is a problem reading the object.
java.lang.ClassNotFoundException - Thrown if there is a problem reading the object.
public DataStorageTag getStorageTag(java.lang.String name)
throws java.io.FileNotFoundException,
java.io.IOException,
java.lang.ClassNotFoundException
name - The name of the object.
FileNotFoundException - Thrown if there is a problem reading the file.
IOException - Thrown if there is a problem reading the file.
java.lang.ClassNotFoundException - Thrown if there is a problem reading the file.public java.lang.String getVaultDirectory()
public void setVaultDirectory(java.lang.String path)
path - The file path to the vault.public java.util.List listFilenames()
public void removeFile(java.lang.String name)
name - The name of the object.
public void updateFile(java.lang.String name,
java.io.Serializable data)
throws java.io.FileNotFoundException,
java.io.IOException,
java.lang.ClassNotFoundException
name - The name of the object to update.data - The object data.
FileNotFoundException - Thrown if there is a problem reading the file.
IOException - Thrown if there is a problem reading the file.
java.lang.ClassNotFoundException - Thrown if there is a problem reading the file.
public void updateFile(java.io.Serializable data,
DataStorageTag tag,
java.lang.String name)
throws java.io.IOException
data - The object data.tag - The storage tab.name - The name of the data object.
IOException - Thrown if there is a problem updating the file.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||