Servertec
Foundation Classes
1.3.3 09/04/2005

stec.sfc.Win32
Class FileMoveMode

java.lang.Object
  extended by stec.sfc.Win32.FileMoveMode

public final class FileMoveMode
extends java.lang.Object

Drive type returned by FileSystem.html.move() and File.html.move().

Since:
1.2.0 12/03/2002

Field Summary
static int COPY
          Copy is allowed.
static int CREATE_HARDLINK
          Create a hard link.
static int DELAY_UNTIL_REBOOT
          Move the file when the operating system is restarted.
static int FAIL_IF_NOT_TRACKABLE
          The move fails if the source file is a link and the destination cannot be tracked because it is on a FAT file system.
static int REPLACE_EXISTING
          Overwrite any existing file.
static int WRITE_THROUGH
          Roadblocks the move operation until it completes.
 
Constructor Summary
FileMoveMode()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPY

public static final int COPY
Copy is allowed.

The source file is copied to the destination and then the source file is deleted.

Set to MOVEFILE_COPY_ALLOWED.


CREATE_HARDLINK

public static final int CREATE_HARDLINK
Create a hard link.

Reserved for future use.

Set to MOVEFILE_CREATE_HARDLINK.


DELAY_UNTIL_REBOOT

public static final int DELAY_UNTIL_REBOOT
Move the file when the operating system is restarted.

If destination is NULL the source file is deleted.

The source file cannot be read-only.

The process using this file mode must be an Administrator or the LocalSystem account.

DELAY_UNTIL_REBOOT cannot be used with COPY.

Set to MOVEFILE_DELAY_UNTIL_REBOOT.


FAIL_IF_NOT_TRACKABLE

public static final int FAIL_IF_NOT_TRACKABLE
The move fails if the source file is a link and the destination cannot be tracked because it is on a FAT file system.

Windows 2000 only.

Set to MOVEFILE_FAIL_IF_NOT_TRACKABLE.


REPLACE_EXISTING

public static final int REPLACE_EXISTING
Overwrite any existing file.

REPLACE_EXISTING cannot be used if the destination is a directory.

Set to MOVEFILE_REPLACE_EXISTING.


WRITE_THROUGH

public static final int WRITE_THROUGH
Roadblocks the move operation until it completes.

Guarantees that a move performed as a copy and delete operation is flushed to disk before the method returns.

Set to MOVEFILE_WRITE_THROUGH.

Constructor Detail

FileMoveMode

public FileMoveMode()

Servertec
Foundation Classes
1.3.3 09/04/2005

Copyright © 2001-2005 Servertec. All rights reserved.