|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceMapSerializer
A ResourceMapSerializer is used to serialize the content of a
ResourceMap to a machine readable format (for example XML). Different
implementations of this interface will handle serialization to different formats.
At the moment the Open Archive Initiative describes two possible serialization formats:
| Method Summary | |
|---|---|
void |
serializeToFile(File file,
ResourceMap map)
Serialize the resource map to the given file. |
String |
serializeToString(ResourceMap map)
Serialize the resource map and return it as a String. |
Element |
serializeToXml(ResourceMap map)
Serialize the resource map into XML. |
| Method Detail |
|---|
void serializeToFile(File file,
ResourceMap map)
throws IOException
file - a filemap - a resource map
IOException
String serializeToString(ResourceMap map)
throws IOException
String.
map - a resource map
String with the serialized resource map
IOExceptionElement serializeToXml(ResourceMap map)
map - a resource map
Element containing the result of the serialization
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||