public class DcsDataConverter
extends java.lang.Object
$Id $
Modifier and Type | Class and Description |
---|---|
class |
DcsDataConverter.DirectoryFilter |
Constructor and Description |
---|
DcsDataConverter(java.lang.String path,
MetaDataFramework framework)
DcsDataConverter Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
convert()
Convert a directory of dcs_data files into new format by calling convertFile
on each file.
|
void |
convertDirectory(java.io.File directory) |
boolean |
convertFile(java.io.File file)
Convert file to new format if necessary
|
static void |
main(java.lang.String[] args)
debugging
|
static void |
setDebug(boolean db)
Sets the debug attribute of the DcsDataConverter object
|
static void |
show(org.dom4j.Node node)
Utility to show XML in pretty form
|
public DcsDataConverter(java.lang.String path, MetaDataFramework framework)
path
- directory holding default record and records directorypublic void convert()
public void convertDirectory(java.io.File directory)
public boolean convertFile(java.io.File file) throws java.lang.Exception
file
- file to be convertedjava.lang.Exception
- thrown if file cannot be converted or written to disk after conversionpublic static void main(java.lang.String[] args)
args
- The command line argumentspublic static void setDebug(boolean db)
db
- The new debug valuepublic static void show(org.dom4j.Node node)
node
- Description of the Parameter