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
Fields inherited from interface liquibase.plugin.Plugin
PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NOT_APPLICABLE, PRIORITY_SPECIALIZED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes any resources associated with the output file handler.void
create
(String outputFile, CommandScope commandScope) Creates a new output file with the specified name and sets the output stream in the command scope.int
Returns 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:OutputFileHandler
Returns the priority of the output file handler based on the specified output file.- Specified by:
getPriority
in interfaceOutputFileHandler
- Returns:
- the priority of the output file handler
-
create
Description copied from interface:OutputFileHandler
Creates a new output file with the specified name and sets the output stream in the command scope.- Specified by:
create
in 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:OutputFileHandler
Closes any resources associated with the output file handler.- Specified by:
close
in interfaceOutputFileHandler
- Throws:
IOException
- if an I/O error occurs while closing the output stream
-