Servertec
Foundation Classes
1.3.3 09/04/2005

stec.sfc.Win32
Class FileOperation

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

public final class FileOperation
extends java.lang.Object

File operations used by RandomAccessFile.

Since:
1.0.0 01/07/2001

Field Summary
static int CREATE_ALWAYS
          Creates a new file.
static int CREATE_NEW
          Creates a new file.
static int OPEN_ALWAYS
          Opens existing file otherwise creates it.
static int OPEN_EXISTING
          Opens existing file.
static int TRUNCATE_EXISTING
          Opens and truncates existing file.
 
Constructor Summary
FileOperation()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CREATE_NEW

public static final int CREATE_NEW
Creates a new file.

Operation fails if file already exists.

Set to CREATE_NEW.


CREATE_ALWAYS

public static final int CREATE_ALWAYS
Creates a new file.

Deletes any existing file.

Set to CREATE_ALWAYS.


OPEN_EXISTING

public static final int OPEN_EXISTING
Opens existing file.

Operation fails if the file does not exist.

Set to OPEN_EXISTING.


OPEN_ALWAYS

public static final int OPEN_ALWAYS
Opens existing file otherwise creates it.

Create fails if the file does not exist.

Set to OPEN_ALWAYS.


TRUNCATE_EXISTING

public static final int TRUNCATE_EXISTING
Opens and truncates existing file.

Operation fails if the file does not exist.

Set to TRUNCATE_EXISTING.

Constructor Detail

FileOperation

public FileOperation()

Servertec
Foundation Classes
1.3.3 09/04/2005

Copyright © 2001-2005 Servertec. All rights reserved.