The Mozilla
Organization
Our Mission
Who We Are
Getting Involved
Community
Editorials
What's New
Newsbot
Development
Roadmap
Module Owners
Blue Sky
Projects
Status
Tools
Products
Source Code
Binaries
Documentation
License Terms
Bug Reports
Quality
Search
Feedback


Class calypso.util.TempFile

All Packages  This Package  Class Hierarchy  Class Search  Index

Class calypso.util.TempFile

java.lang.Object
   |
   +----calypso.util.TempFile

Utility class for generating temporary file names.


public class  TempFile
     extends java.lang.Object
{
          // Fields 5
     String fTempFileName;
     private static Random gGenerator;
     private static boolean gHaveSetFinalizersOnExit;
     private static int gNextID;
     static final String propertyName;

          // Constructors 1
     protected TempFile(String);

          // Methods 9
     public static synchronized String GetTempDir();
     public static synchronized void SetTempDir(String);
     public static synchronized TempFile TempName(String);
     private static boolean TryDirectory(String);
     public OutputStream append() throws IOException;
     public OutputStream create() throws IOException;
     public void delete();
     protected void finalize();
     public String getName();
}



Fields


gHaveSetFinalizersOnExit

   private static boolean gHaveSetFinalizersOnExit


gNextID

   private static int gNextID


gGenerator

   private static Random gGenerator


fTempFileName

   String fTempFileName


propertyName

   static final String propertyName

Return the native path name for the system's temporary directory.



Constructors


TempFile

   protected TempFile(String aName) 



Methods


TempName

   public static synchronized TempFile TempName(String aExtension) 

Create a new temporary file name that the calling thread can use that is unique and has the given extension.



GetTempDir

   public static synchronized String GetTempDir() 


TryDirectory

   private static boolean TryDirectory(String aDir) 


SetTempDir

   public static synchronized void SetTempDir(String aDir) 

Set the native path name for the system's temporary directory.



create

   public OutputStream create()  throws IOException


append

   public OutputStream append()  throws IOException


getName

   public String getName() 


delete

   public void delete() 


finalize

   protected void finalize() 
Overrides:
finalize in class Object


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4



Copyright © 1998 The Mozilla Organization.