org.jboss.cache.config.parsing
Class ConfigFilesConvertor

java.lang.Object
  extended by org.jboss.cache.config.parsing.ConfigFilesConvertor

public class ConfigFilesConvertor
extends Object

Class used for converting a config file from from 2.x version to 3.x verison.

Since:
3.0
Author:
Mircea.Markus@jboss.com

Constructor Summary
ConfigFilesConvertor()
           
 
Method Summary
static void main(String[] argv)
          usage : java org.jboss.cache.config.parsing.ConfigFilesConvertor -Dsource=config-2.x.xml -Ddestination=config-3.x.xnl
 void parse(InputStream is, OutputStream os, String xsltFile)
          Writes to the os the 3.x configuration file resulted by transforming the 2.x configuration file passed in as is.
 void parse(String inputFile, OutputStream os, String xsltFile)
          Writes to the os the 3.x configuration file resulted by transforming the 2.x configuration file passed in as inputFile.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigFilesConvertor

public ConfigFilesConvertor()
Method Detail

parse

public void parse(InputStream is,
                  OutputStream os,
                  String xsltFile)
           throws Exception
Writes to the os the 3.x configuration file resulted by transforming the 2.x configuration file passed in as is. Transformation is performed according to the xsltFile. The xslt file is looked up using a FileLookup

Throws:
Exception

parse

public void parse(String inputFile,
                  OutputStream os,
                  String xsltFile)
           throws Exception
Writes to the os the 3.x configuration file resulted by transforming the 2.x configuration file passed in as inputFile. Transformation is performed according to the xsltFile. Both inputFile and he xslt file are looked up using a FileLookup

Throws:
Exception

main

public static void main(String[] argv)
                 throws Exception
usage : java org.jboss.cache.config.parsing.ConfigFilesConvertor -Dsource=config-2.x.xml -Ddestination=config-3.x.xnl

Throws:
Exception


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.