Interface OutputTool
- All Known Implementing Classes:
FileOutputTool,MockOutputTool
public interface OutputTool
Receives rendered documentation output and supporting resource copies.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcopyResource(String srcPath, String dstPath) Copy a resource file (doc-files/, snippet-files/ content) fromsrcPathtodstPath.voidmakeOutputArea(String filename) Ensures that the supplied output location exists.voidwriteToOutput(String fileName, String text, String charset) Writes rendered text to the supplied output file.
-
Method Details
-
makeOutputArea
Ensures that the supplied output location exists.- Parameters:
filename- the output directory or root path to prepare
-
writeToOutput
Writes rendered text to the supplied output file.- Parameters:
fileName- the file to writetext- the rendered contentcharset- the character set to use when writing- Throws:
Exception- if the output cannot be written
-
copyResource
Copy 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.- Throws:
Exception- Since:
- 6.0.0
-