public class DefaultConverter extends Object implements Converter
Converter
Modifier and Type | Field and Description |
---|---|
static String[] |
SUPPORTED_FROM_FORMAT
Supported input format, i.e.
|
static String[] |
SUPPORTED_TO_FORMAT
Supported output format, i.e.
|
Constructor and Description |
---|
DefaultConverter() |
Modifier and Type | Method and Description |
---|---|
void |
convert(InputFileWrapper input,
OutputFileWrapper output) |
void |
convert(InputReaderWrapper input,
OutputStreamWrapper output) |
void |
enableLogging(org.apache.maven.doxia.logging.Log log) |
String[] |
getInputFormats() |
protected org.apache.maven.doxia.logging.Log |
getLog()
Returns a logger for this sink.
|
String[] |
getOutputFormats() |
void |
setFormatOutput(boolean formatOutput)
Make the generated files human readable.
|
public static final String[] SUPPORTED_FROM_FORMAT
public static final String[] SUPPORTED_TO_FORMAT
public void enableLogging(org.apache.maven.doxia.logging.Log log)
enableLogging
in interface org.apache.maven.doxia.logging.LogEnabled
protected org.apache.maven.doxia.logging.Log getLog()
public String[] getInputFormats()
getInputFormats
in interface Converter
apt
.public String[] getOutputFormats()
getOutputFormats
in interface Converter
xhtml
.public void convert(InputFileWrapper input, OutputFileWrapper output) throws UnsupportedFormatException, ConverterException
convert
in interface Converter
input
- an input file wrapper, not null.output
- an output file wrapper, not null.UnsupportedFormatException
- if anyConverterException
- if anypublic void convert(InputReaderWrapper input, OutputStreamWrapper output) throws UnsupportedFormatException, ConverterException
convert
in interface Converter
input
- an input reader wrapper, not null.output
- an output writer wrapper, not null.UnsupportedFormatException
- if anyConverterException
- if anypublic void setFormatOutput(boolean formatOutput)
setFormatOutput
in interface Converter
formatOutput
- true
to format the generated files, false
otherwise.Copyright © 2005–2023 The Apache Software Foundation. All rights reserved.