|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectjava.io.File
com.nurelm.util.NuFile
Extends File and includes the method: isOlderThan().
| Field Summary | |
|---|---|
static int |
RETURN_PATH_FILE_NAME
DOCUMENT ME! |
| Fields inherited from class java.io.File |
|---|
pathSeparator, pathSeparatorChar, separator, separatorChar |
| Constructor Summary | |
|---|---|
NuFile(java.lang.String pathFileName)
Creates a new NuFile object. |
|
| Method Summary | |
|---|---|
java.lang.String |
extractFileFromPathFileName()
Returns File only - not the path. |
long |
getFileSize()
This method will get the amount of disk space a client is using. |
long |
getFileSize(java.io.File fileName)
This method will get the amount of disk space a client is using. |
java.lang.String |
getFileSizeString()
This method returns the file size, converted into megs, in the form of a string |
boolean |
isLink(java.io.File fileName)
This method will get the absolute and canonical pathname of a file and compares them in order to determine if the file is a link or not. |
boolean |
isOlderThan(long numHours)
Returns true if the file is older than the passed-in number of hours. |
boolean |
newFileName(java.lang.String filename)
|
static java.lang.String |
stripFileFromPath(java.lang.String pathName)
Send this method /a/path/to/a/file.txt and get /a/path/to/a/ without the filename at the end. |
static java.lang.String |
verifyPathSlashes(java.lang.String path)
Verfies that the path has... |
java.lang.String |
verifyUniqueFileName()
This method will verify that a given file name and path is unique. |
java.lang.String |
verifyUniqueFileName(int returnPathFileName)
DOCUMENT ME! |
| Methods inherited from class java.io.File |
|---|
canRead, canWrite, compareTo, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getName, getParent, getParentFile, getPath, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setLastModified, setReadOnly, toString, toURI, toURL |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int RETURN_PATH_FILE_NAME
| Constructor Detail |
public NuFile(java.lang.String pathFileName)
pathFileName - DOCUMENT ME!| Method Detail |
public boolean isOlderThan(long numHours)
throws java.lang.SecurityException
numHours - a long value indicating the age of the file.
java.lang.SecurityException - DOCUMENT ME!
public static java.lang.String verifyPathSlashes(java.lang.String path)
throws NuFileException
path - DOCUMENT ME!
NuFileException - DOCUMENT ME!
public static java.lang.String stripFileFromPath(java.lang.String pathName)
throws NuFileException
pathName - DOCUMENT ME!
NuFileException - DOCUMENT ME!
public long getFileSize(java.io.File fileName)
throws java.io.IOException
fileName - DOCUMENT ME!
java.io.IOException - DOCUMENT ME!
public long getFileSize()
throws java.io.IOException
java.io.IOException - DOCUMENT ME!
public java.lang.String getFileSizeString()
throws java.io.IOException
java.io.IOException - DOCUMENT ME!
public boolean isLink(java.io.File fileName)
throws java.io.IOException
fileName - DOCUMENT ME!
java.io.IOException - DOCUMENT ME!
public java.lang.String verifyUniqueFileName()
throws java.lang.NullPointerException
java.lang.NullPointerException - DOCUMENT ME!
public java.lang.String verifyUniqueFileName(int returnPathFileName)
throws NuFileException
returnPathFileName - DOCUMENT ME!
NuFileException - DOCUMENT ME!public boolean newFileName(java.lang.String filename)
public java.lang.String extractFileFromPathFileName()
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||