de.bsd.x2svg.outputConverter
Class SvgConverter

java.lang.Object
  extended by de.bsd.x2svg.outputConverter.SvgConverter

public class SvgConverter
extends java.lang.Object

Convert SVG files into various output file types. The supported types are encoded in OutputType

Since:
1.1
Author:
hwr@pilhuhn.de
See Also:
SVGTranscoderFactory, OutputType

Constructor Summary
SvgConverter()
           
 
Method Summary
 void convert(OutputType type, java.io.File input, java.io.File output)
          Convert the passed SVG input file into the passed output file
 void convert(java.lang.String type, java.io.File input, java.io.File output)
          Convert the passed SVG input file into the passed output file
static void main(java.lang.String[] args)
          Convert the SVG file passed in as the second argument into an output file given in the third argument and of the type passed in the first argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SvgConverter

public SvgConverter()
Method Detail

convert

public void convert(OutputType type,
                    java.io.File input,
                    java.io.File output)
             throws ConversionException
Convert the passed SVG input file into the passed output file

Parameters:
type - A valid OutputType
input - A valid input file containing SVG data
output - An output file to write the result to
Throws:
ConversionException - if anything in the conversion process goes wrong
See Also:
OutputType

convert

public void convert(java.lang.String type,
                    java.io.File input,
                    java.io.File output)
             throws ConversionException
Convert the passed SVG input file into the passed output file

Parameters:
type - a string representing a valid OutputType
input - A valid input file containing SVG data
output - An output file to write the result to
Throws:
ConversionException - if anything in the conversion process goes wrong
See Also:
OutputType

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Convert the SVG file passed in as the second argument into an output file given in the third argument and of the type passed in the first argument. An output directory can be set in the optional fourth parameter

Parameters:
args - Input parameters: type(s) input.svg output[.type] [output dir]
Throws:
java.lang.Exception - if anything goes wrong


x2svg version 1.2.1