ewe.io
Class FileSys

java.lang.Object
  extended byewe.io.FileSys
Direct Known Subclasses:
FileBase

public abstract class FileSys
extends Object

This class is used as base for the Java and abstract versions of File.


Field Summary
static int DOS_SYSTEM
          The file system is a DOS/Windows type system.
static int MEMORY_SYSTEM
          The file system is temporary memory based system.
static int PALM_SYSTEM
          The file system is a PalmOS type system - whatever that may be.
static int UNIX_SYSTEM
          The file system is a Unix/Linux type system.
 
Constructor Summary
FileSys()
           
 
Method Summary
 File createTempFile(String fileName, File dir)
          This creates an empty file with a specific name in a temporary directory.
 File createTempFile(String prefix, String suffix, File dir)
          This creates an empty temporary file with the specified prefix and suffix.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, toString
 

Field Detail

DOS_SYSTEM

public static final int DOS_SYSTEM
The file system is a DOS/Windows type system.

See Also:
Constant Field Values

UNIX_SYSTEM

public static final int UNIX_SYSTEM
The file system is a Unix/Linux type system.

See Also:
Constant Field Values

PALM_SYSTEM

public static final int PALM_SYSTEM
The file system is a PalmOS type system - whatever that may be.

See Also:
Constant Field Values

MEMORY_SYSTEM

public static final int MEMORY_SYSTEM
The file system is temporary memory based system.

See Also:
Constant Field Values
Constructor Detail

FileSys

public FileSys()
Method Detail

createTempFile

public File createTempFile(String prefix,
                           String suffix,
                           File dir)
This creates an empty temporary file with the specified prefix and suffix. If the suffix is null then ".tmp" will be used. If the dir is null, the system temporary folder will be used. Note that this method may return a file name that is different from the requested file name. This depends on the underlying system and how it provides temporary file support.


createTempFile

public File createTempFile(String fileName,
                           File dir)
This creates an empty file with a specific name in a temporary directory. If the file already exists in the directory it will be deleted and the new one will be created. If dir is null then the file will be created in the system temporary directory.