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.Logger
log
-
Constructor Summary
Constructors Constructor Description TeslaModelTranslator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
translate(File input, File output)
void
translate(File input, Map<String,?> inputOptions, File output, Map<String,?> outputOptions)
void
translate(InputStream input, Map<String,?> inputOptions, OutputStream output, Map<String,?> outputOptions)
void
translate(Reader input, Map<String,?> inputOptions, Writer output, Map<String,?> outputOptions)
void
translate(URL input, URL output)
void
translate(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:
IOException
org.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:
IOException
org.apache.maven.model.io.ModelParseException
-
translate
public void translate(URL input, URL output) throws IOException, org.apache.maven.model.io.ModelParseException
- Throws:
IOException
org.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:
IOException
org.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:
IOException
org.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:
IOException
org.apache.maven.model.io.ModelParseException
-
-