Package liquibase.io

Class StandardOutputFileHandler

java.lang.Object
liquibase.io.StandardOutputFileHandler
All Implemented Interfaces:
OutputFileHandler, Plugin

public class StandardOutputFileHandler extends Object implements OutputFileHandler
Standard Liquibase behavior of redirecting console output to output-file.
  • Field Details

  • 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 interface OutputFileHandler
      Returns:
      the priority of the output file handler
    • create

      public void create(String outputFile, CommandScope commandScope) throws IOException
      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 interface OutputFileHandler
      Parameters:
      outputFile - the path or name of the output file to create
      commandScope - 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

      public void close() throws IOException
      Description copied from interface: OutputFileHandler
      Closes any resources associated with the output file handler.
      Specified by:
      close in interface OutputFileHandler
      Throws:
      IOException - if an I/O error occurs while closing the output stream