Class WebAppDeployerUtil
- java.lang.Object
-
- com.sun.portal.portletcontainer.admin.deployment.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 Summary
Constructors Constructor Description WebAppDeployerUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
copyFile(String fromFile, String toFile)
Copies contents from one file to anotherstatic void
copyInputStream(InputStream in, OutputStream out)
Copies contents from the InputStream to the OutputStream.
-
-
-
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
-
-