Package org.sonatype.maven.polyglot
Class TeslaModelTranslator
- java.lang.Object
-
- org.sonatype.maven.polyglot.TeslaModelTranslator
-
@Component(role=TeslaModelTranslator.class) public class TeslaModelTranslator extends Object
Translates between polyglot model formats.- Since:
- 0.7
- Author:
- Jason Dillon
-
-
Field Summary
Fields Modifier and Type Field Description protected org.codehaus.plexus.logging.Loggerlog
-
Constructor Summary
Constructors Constructor Description TeslaModelTranslator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtranslate(File input, File output)voidtranslate(File input, Map<String,?> inputOptions, File output, Map<String,?> outputOptions)voidtranslate(InputStream input, Map<String,?> inputOptions, OutputStream output, Map<String,?> outputOptions)voidtranslate(Reader input, Map<String,?> inputOptions, Writer output, Map<String,?> outputOptions)voidtranslate(URL input, URL output)voidtranslate(URL input, Map<String,?> inputOptions, URL output, Map<String,?> outputOptions)
-
-
-
Method Detail
-
translate
public void translate(File input, File output) throws IOException, org.apache.maven.model.io.ModelParseException
- Throws:
IOExceptionorg.apache.maven.model.io.ModelParseException
-
translate
public void translate(File input, Map<String,?> inputOptions, File output, Map<String,?> outputOptions) throws IOException, org.apache.maven.model.io.ModelParseException
- Throws:
IOExceptionorg.apache.maven.model.io.ModelParseException
-
translate
public void translate(URL input, URL output) throws IOException, org.apache.maven.model.io.ModelParseException
- Throws:
IOExceptionorg.apache.maven.model.io.ModelParseException
-
translate
public void translate(URL input, Map<String,?> inputOptions, URL output, Map<String,?> outputOptions) throws IOException, org.apache.maven.model.io.ModelParseException
- Throws:
IOExceptionorg.apache.maven.model.io.ModelParseException
-
translate
public void translate(InputStream input, Map<String,?> inputOptions, OutputStream output, Map<String,?> outputOptions) throws IOException, org.apache.maven.model.io.ModelParseException
- Throws:
IOExceptionorg.apache.maven.model.io.ModelParseException
-
translate
public void translate(Reader input, Map<String,?> inputOptions, Writer output, Map<String,?> outputOptions) throws IOException, org.apache.maven.model.io.ModelParseException
- Throws:
IOExceptionorg.apache.maven.model.io.ModelParseException
-
-