Class FileOutputTool
java.lang.Object
org.codehaus.groovy.tools.groovydoc.FileOutputTool
- All Implemented Interfaces:
OutputTool
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyResource(String srcPath, String dstPath) Copy a resource file (doc-files/, snippet-files/ content) fromsrcPathtodstPath.voidmakeOutputArea(String filename) voidwriteToOutput(String fileName, String text, String charset)
-
Constructor Details
-
FileOutputTool
public FileOutputTool()
-
-
Method Details
-
makeOutputArea
- Specified by:
makeOutputAreain interfaceOutputTool
-
writeToOutput
- Specified by:
writeToOutputin interfaceOutputTool- Throws:
Exception
-
copyResource
Description copied from interface:OutputToolCopy a resource file (doc-files/, snippet-files/ content) fromsrcPathtodstPath. Routed through the tool rather than callingFiles.copydirectly so that alternative tools (notablyMockOutputTool) can intercept the side-effect.- Specified by:
copyResourcein interfaceOutputTool- Throws:
IOException
-