Package liquibase.io
Class StandardOutputFileHandler
java.lang.Object
liquibase.io.StandardOutputFileHandler
- All Implemented Interfaces:
OutputFileHandler,Plugin
Standard Liquibase behavior of redirecting console output to output-file.
-
Field Summary
FieldsFields inherited from interface liquibase.plugin.Plugin
PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NOT_APPLICABLE, PRIORITY_SPECIALIZED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes any resources associated with the output file handler.voidcreate(String outputFile, CommandScope commandScope) Creates a new output file with the specified name and sets the output stream in the command scope.intReturns the priority of the output file handler based on the specified output file.
-
Field Details
-
outputStream
-
-
Constructor Details
-
StandardOutputFileHandler
public StandardOutputFileHandler()
-
-
Method Details
-
getPriority
public int getPriority()Description copied from interface:OutputFileHandlerReturns the priority of the output file handler based on the specified output file.- Specified by:
getPriorityin interfaceOutputFileHandler- Returns:
- the priority of the output file handler
-
create
Description copied from interface:OutputFileHandlerCreates a new output file with the specified name and sets the output stream in the command scope.- Specified by:
createin interfaceOutputFileHandler- Parameters:
outputFile- the path or name of the output file to createcommandScope- the scope of the command that triggered the creation of the output file- Throws:
IOException- if an I/O error occurs while creating the output file
-
close
Description copied from interface:OutputFileHandlerCloses any resources associated with the output file handler.- Specified by:
closein interfaceOutputFileHandler- Throws:
IOException- if an I/O error occurs while closing the output stream
-