|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DataFormat
An interface that provides general I/O operations for read/write object data. For example, reading data content or data attribute from file into memory or writing data content or data attribute from memory into file.
HObject| Method Summary | |
|---|---|
java.lang.String |
getFile()
Returns the full path of the file that contains this data object. |
java.util.List |
getMetadata()
Retrieves the metadata such as attributes from file. |
void |
removeMetadata(java.lang.Object info)
Deletes an existing metadata from this data object. |
void |
writeMetadata(java.lang.Object info)
Writes a specific metadata (such as attribute) into file. |
| Method Detail |
|---|
java.lang.String getFile()
The file name is necessary because data objects are uniquely identified by object reference and file name when mutilple files are opened at the same time.
java.util.List getMetadata()
throws java.lang.Exception
Metadata such as attributes are stored in a List.
java.lang.Exception
void writeMetadata(java.lang.Object info)
throws java.lang.Exception
If metadata exists, the method updates its value. If the metadata does not exists in file, it creates the metadata in file and attaches it to the object.
info - the metadata to write.
java.lang.Exception
void removeMetadata(java.lang.Object info)
throws java.lang.Exception
info - the metadata to delete.
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||