public interface DataFormat
HObject
Modifier and Type | Method and Description |
---|---|
String |
getFile()
Returns the full path of the file that contains this data object.
|
List |
getMetadata()
Retrieves the metadata such as attributes from file.
|
boolean |
hasAttribute()
Check if the object has any attributes attached.
|
void |
removeMetadata(Object info)
Deletes an existing metadata from this data object.
|
void |
updateMetadata(Object info)
Updates an existing metadata from this data object.
|
void |
writeMetadata(Object info)
Writes a specific metadata (such as attribute) into file.
|
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.
List getMetadata() throws Exception
Metadata such as attributes are stored in a List.
Exception
- if the metadata can not be retrievedvoid writeMetadata(Object info) throws Exception
info
- the metadata to write.Exception
- if the metadata can not be writtenvoid removeMetadata(Object info) throws Exception
info
- the metadata to delete.Exception
- if the metadata can not be removedvoid updateMetadata(Object info) throws Exception
info
- the metadata to update.Exception
- if the metadata can not be updatedboolean hasAttribute()
Copyright © 2017. All Rights Reserved.