Package openbook.tools.converter
Class Java2TextConverter
- java.lang.Object
-
- openbook.tools.converter.SourceRenderer
-
- openbook.tools.converter.Java2TextConverter
-
public class Java2TextConverter extends SourceRenderer
Converts Java Source code to plain text with optional line number.- Author:
- Pinaki Poddar
-
-
Field Summary
-
Fields inherited from class openbook.tools.converter.SourceRenderer
CURRENT_DIRECTORY, DOT, FORWARD_SLASH
-
-
Constructor Summary
Constructors Constructor Description Java2TextConverter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TokenRenderer
createRenderer(CommandProcessor options, java.io.File outFile)
static void
main(java.lang.String[] args)
void
registerOptions(CommandProcessor options)
-
Methods inherited from class openbook.tools.converter.SourceRenderer
getDestinationDirectory, getInputStream, getSourceDirectory, run, verbose, warn
-
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception
- Throws:
java.lang.Exception
-
registerOptions
public void registerOptions(CommandProcessor options)
- Specified by:
registerOptions
in classSourceRenderer
-
createRenderer
public TokenRenderer createRenderer(CommandProcessor options, java.io.File outFile)
- Specified by:
createRenderer
in classSourceRenderer
-
-