|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.izforge.izpack.util.os.WinSetupAPIBase
com.izforge.izpack.util.os.WinSetupFileQueue
public class WinSetupFileQueue
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
WinSetupFileQueue(Librarian librarian)
Creates a new file queue which uses the default setup callback handler from the Windows Setup API. |
|
WinSetupFileQueue(Librarian librarian,
WinSetupQueueCallbackInterface handler)
Creates a new file queue and defines a Java callback handler for it that is used instead of the default setup callback handler from the Windows Setup API. |
|
| Method Summary | |
|---|---|
void |
addCopy(File sourcefile,
File targetfile)
Places an individual file copy operation on a setup file queue. |
void |
addCopy(File sourcefile,
File targetfile,
boolean forceInUse)
Places an individual file copy operation on a setup file queue. |
protected void |
addCopy(File sourcefile,
File targetfile,
int copyStyle)
Places an individual file copy operation on a setup file queue. |
void |
addDelete(File file)
Places an individual file delete operation on a setup file queue. |
void |
addMove(File sourcefile,
File targetfile)
Places an individual file move operation on a setup file queue. |
void |
addMove(File sourcefile,
File targetfile,
boolean forceInUse)
Places an individual file move operation on a setup file queue. |
void |
addRename(File sourcefile,
File targetfile)
Places an individual file rename operation on a setup file queue. |
void |
close()
Closes the file queue. |
boolean |
commit()
Commits the enqueued operations in the file queue. |
boolean |
isRebootNecessary()
Check whether reboot is necessary to apply committed changes. |
| Methods inherited from class com.izforge.izpack.util.os.WinSetupAPIBase |
|---|
freeLibrary, SetupCloseFileQueue, SetupCommitFileQueue, SetupOpenFileQueue, SetupPromptReboot, SetupQueueCopy, SetupQueueDelete, SetupQueueRename |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WinSetupFileQueue(Librarian librarian)
throws Exception
librarian - the librarian
Exception - if the WinSetupAPI library cannot be loaded
public WinSetupFileQueue(Librarian librarian,
WinSetupQueueCallbackInterface handler)
throws IOException
librarian - the librarianhandler - Java callback handler
IzPackException - if the WinSetupAPI library cannot be loaded
IOException| Method Detail |
|---|
protected void addCopy(File sourcefile,
File targetfile,
int copyStyle)
throws IOException
sourcefile - Copy source filetargetfile - Copy target filecopyStyle - A bitwise 'or-ed' combination of copy styles
IOException
public void addCopy(File sourcefile,
File targetfile)
throws IOException
sourcefile - Copy source filetargetfile - Copy target file
IOException
public void addCopy(File sourcefile,
File targetfile,
boolean forceInUse)
throws IOException
sourcefile - Copy source filetargetfile - Copy target fileforceInUse - Whether to force target-in-use behavior
IOException
public void addDelete(File file)
throws IOException
file - File to delete.
IOException
public void addRename(File sourcefile,
File targetfile)
throws IOException
sourcefile - Rename source filetargetfile - Rename target file
IOException
public void addMove(File sourcefile,
File targetfile)
throws IOException
sourcefile - Move source filetargetfile - Move target file
IOException
public void addMove(File sourcefile,
File targetfile,
boolean forceInUse)
throws IOException
sourcefile - Move source filetargetfile - Move target fileforceInUse - Whether to force target-in-use behavior
IOException
public boolean commit()
throws IOException
IOExceptionpublic void close()
public boolean isRebootNecessary()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||