org.deepfs.fsml.ser
Class FSMLSerializer

java.lang.Object
  extended by org.deepfs.fsml.ser.FSMLSerializer

public final class FSMLSerializer
extends Object

DeepFile Serializer. Serializes DeepFiles in XML.

Author:
Workgroup DBIS, University of Konstanz 2005-10, ISC License, Bastian Lemke

Method Summary
static String serialize(DeepFile deepFile)
          Serializes a DeepFile.
static String serialize(File file, boolean root)
          Serializes a file without metadata and content.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

serialize

public static String serialize(DeepFile deepFile)
                        throws IOException
Serializes a DeepFile.

Parameters:
deepFile - the DeepFile to serialize
Returns:
the xml data as string
Throws:
IOException - if any error occurs

serialize

public static String serialize(File file,
                               boolean root)
Serializes a file without metadata and content.

Parameters:
file - the file to serialize
root - if true, a filesystem root is are created instead of a simple directory
Returns:
the xml data as string