|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object se.kb.oai.ore.impl.SerializerBase
public abstract class SerializerBase
Abstract base class for the different ResourceMapSerializer
implementations.
Constructor Summary | |
---|---|
SerializerBase()
|
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 . |
abstract Element |
serializeToXml(ResourceMap map)
Serialize the resource map into XML. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SerializerBase()
Method Detail |
---|
public void serializeToFile(File file, ResourceMap map) throws IOException
ResourceMapSerializer
serializeToFile
in interface ResourceMapSerializer
file
- a filemap
- a resource map
IOException
public String serializeToString(ResourceMap map) throws IOException
ResourceMapSerializer
String
.
serializeToString
in interface ResourceMapSerializer
map
- a resource map
String
with the serialized resource map
IOException
public abstract Element serializeToXml(ResourceMap map)
ResourceMapSerializer
serializeToXml
in interface ResourceMapSerializer
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 |