Class WebAppDeployerUtil


  • public class WebAppDeployerUtil
    extends Object
    A util class which provides the helper methods to copy files which will be used by the implementations of WebAppDeployer interface.
    • Constructor Detail

      • WebAppDeployerUtil

        public WebAppDeployerUtil()
    • Method Detail

      • copyInputStream

        public static void copyInputStream​(InputStream in,
                                           OutputStream out)
                                    throws IOException
        Copies contents from the InputStream to the OutputStream.
        Parameters:
        in - InputStream from which to copy contents.
        out - OutputStream to which contents are written.
        Throws:
        IOException
      • copyFile

        public static void copyFile​(String fromFile,
                                    String toFile)
                             throws IOException
        Copies contents from one file to another
        Parameters:
        fromFile - File from which to copy contents.
        toFile - File to which contents are written.
        Throws:
        IOException