org.fcrepo.server.storage.translation
Class ConvertObjectSerialization

java.lang.Object
  extended by org.fcrepo.server.storage.translation.ConvertObjectSerialization

public class ConvertObjectSerialization
extends Object

Utility class to convert objects from one serialization format to another.

Since:
3.0
Version:
$Id$
Author:
Edwin Shin, Chris Wilper

Constructor Summary
ConvertObjectSerialization(DODeserializer deserializer, DOSerializer serializer, boolean pretty, String inExt, String outExt)
           
 
Method Summary
 boolean convert(File source, File destination)
          Convert files from one format to the other.
static void main(String[] args)
          Command-line utility to convert objects from one format to another.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConvertObjectSerialization

public ConvertObjectSerialization(DODeserializer deserializer,
                                  DOSerializer serializer,
                                  boolean pretty,
                                  String inExt,
                                  String outExt)
Method Detail

convert

public boolean convert(File source,
                       File destination)
Convert files from one format to the other. Hidden directories (directories starting with a ".") are skipped.

Parameters:
source -
destination -
Returns:

main

public static void main(String[] args)
Command-line utility to convert objects from one format to another.

Parameters:
args - command-line args.


Copyright © 2011 DuraSpace. All Rights Reserved.