oracle.dss.util.xdo.common.tmp
Class TmpFile
java.lang.Object
  
oracle.dss.util.xdo.common.tmp.TmpFile
public class TmpFile
- extends java.lang.Object
 
Temporary File routines
 ex)
 File f1 = TmpFile.createTmpFile( "xdo", ".jpg", "d:\\tmp" );
| 
Field Summary | 
static java.lang.String | 
RCS_ID
 
            | 
 
 
| 
Method Summary | 
static java.io.File | 
createTmpFile(java.lang.String prefix,
              java.lang.String suffix,
              java.lang.String dir)
 
          Create a new empty file in the specified directory, using the given prefix
 and suffix strings to generate its name. | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
RCS_ID
public static final java.lang.String RCS_ID
- See Also:
 - Constant Field Values
 
TmpFile
public TmpFile()
createTmpFile
public static java.io.File createTmpFile(java.lang.String prefix,
                                         java.lang.String suffix,
                                         java.lang.String dir)
                                  throws java.io.IOException
- Create a new empty file in the specified directory, using the given prefix
 and suffix strings to generate its name.
- Parameters:
 prefix - The prefix string to be used in generating the file's namesuffix - The suffix string to be used in generating the file's name; may be null, in which case the suffix ".tmp" will be useddir - The directory in which the file is to be created null if the default temporary-file directory is to be used
- Returns:
 - a file or null if failed
 - Throws:
 java.io.IOException
 
 
Copyright © 1997, 2009, Oracle. All rights reserved.