com.izforge.izpack.util.os
Class FileQueueCopy

java.lang.Object
  extended by com.izforge.izpack.util.os.FileQueueCopy
All Implemented Interfaces:
FileQueueOperation
Direct Known Subclasses:
FileQueueMove

public class FileQueueCopy
extends Object
implements FileQueueOperation

File queue copy operation (Windows Setup API)


Field Summary
protected  int copyStyle
           
protected  File fromFile
           
protected  File toFile
           
 
Constructor Summary
FileQueueCopy(File fromFile, File toFile)
           
FileQueueCopy(File fromFile, File toFile, boolean deleteSource, boolean forceInUse)
           
 
Method Summary
 void addTo(WinSetupFileQueue filequeue)
           
 void setDeleteSource(boolean flag)
           
 void setForceInUse(boolean flag)
           
 void setInUseNeedsReboot(boolean flag)
           
 void setLanguageAware(boolean flag)
           
 void setNewerOnly(boolean flag)
           
 void setNewerOrSame(boolean flag)
           
 void setOverwrite(boolean flag)
          Overwrite any existing destination file(s).
 void setReplaceOnly(boolean flag)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fromFile

protected File fromFile

toFile

protected File toFile

copyStyle

protected int copyStyle
Constructor Detail

FileQueueCopy

public FileQueueCopy(File fromFile,
                     File toFile)

FileQueueCopy

public FileQueueCopy(File fromFile,
                     File toFile,
                     boolean deleteSource,
                     boolean forceInUse)
Method Detail

setDeleteSource

public void setDeleteSource(boolean flag)

setForceInUse

public void setForceInUse(boolean flag)

setInUseNeedsReboot

public void setInUseNeedsReboot(boolean flag)

setLanguageAware

public void setLanguageAware(boolean flag)

setNewerOrSame

public void setNewerOrSame(boolean flag)

setNewerOnly

public void setNewerOnly(boolean flag)

setReplaceOnly

public void setReplaceOnly(boolean flag)

setOverwrite

public void setOverwrite(boolean flag)
Overwrite any existing destination file(s).

Parameters:
overwrite - if true force overwriting of destination file(s) even if the destination file(s) are younger than the corresponding source file. Default is false.

addTo

public void addTo(WinSetupFileQueue filequeue)
           throws IOException
Specified by:
addTo in interface FileQueueOperation
Throws:
IOException


Copyright © 2018. All rights reserved.