Main Page Cookbook/Overview ImageMeister the jcprops file Licensing Binary Installation & Configuration [ Win · Mac · Nix ] Changes Public API Source Code Main Page Java [ Common · Win · Mac · Nix ] Native Code [ Common · Win · Mac · Nix ] Manifest Native Code Overviews [ Common · Win · Mac · Nix · Strings ] Macros [ General · Native Macros ] Walkthroughs [ Java only · Java and native ] Building [ Win · Mac · Nix ] Distribution Issues

    All Packages  This Package  Class Hierarchy  Class Search  Index

Class com.jconfig.nix.DOCreatorNix

    java.lang.Object
       |
       +----com.jconfig.nix.DOCreatorNix

Summary

    class  DOCreatorNix
         extends java.lang.Object
    {
              // Fields 3
         private static final String copyrightString;
         static final int kCreateDiskObjectFile;
         static final int kCreateDiskObjectFolder;

              // Constructors 1
         private DOCreatorNix();

              // Methods 2
         static DiskObject createDiskObject(File);
         static DiskObject createNewDiskObject(String, String, int, int);

    }

A singleton used to create DiskObject's.

Author:
  Copyright (c) 1997,1998,1999,2000 Samizdat Productions. All Rights Reserved.

Fields

### · copyrightString | Summary | Top

       private static final String copyrightString

### · kCreateDiskObjectFile | Summary | Top

       static final int kCreateDiskObjectFile

> Flags for the createNewDiskObject() method.

### · kCreateDiskObjectFolder | Summary | Top

       static final int kCreateDiskObjectFolder

Constructors

### · DOCreatorNix | Summary | Top

       private DOCreatorNix()

Methods

### · createNewDiskObject | Summary | Top

       static DiskObject createNewDiskObject(String par,
                                             String newName,
                                             int whichType,
                                             int flags)

> Create a file or directory in the given directory

> Parameter | Description
> newName | the name of the new file
> par | the directory in which the file will be created.
> flags | ignored; set to 0
> whichType | indicates whether file or folder, as follows:
>     if whichType => folder
>     	if an object with that name already exists
>     		if it's a folder
>     			return a DiskObject representing that folder
>     		else
>     			return null
>     	else
>     		create a new folder, and return a DiskObject representing the new folder
>     else if whichType => file
>     	if an object with that name already exists
>     		if it's a file
>     			return a DiskObject representing that file
>     		else
>     			return null
>     	else
>     		create a new, empty file, and return a DiskObject representing the new file

### · createDiskObject | Summary | Top

       static DiskObject createDiskObject(File fl)

> Create a DiskObject from a java.io.File object. If the file doesn't exist, or if an error occurs, null is returned

> Parameter | Description
> fl | the preexisting File, which might be a volume, directory, file, or alias.

    All Packages  This Package  Class Hierarchy  Class Search  Index

Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7