|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.File
cynosurex.io.EnhancedFile
public class EnhancedFile
This class extends the basic File object to provide more files and directory related functionalities.
| Field Summary |
|---|
| Fields inherited from class java.io.File |
|---|
pathSeparator, pathSeparatorChar, separator, separatorChar |
| Fields inherited from interface cynosurex.internal.CommonInterface |
|---|
copyright, copyrightYears, notice, program, version |
| Fields inherited from interface cynosurex.internal.AuthorCommon |
|---|
author, copyrightSymbol, noticeMsg, rights |
| Fields inherited from interface cynosurex.internal.CompanyCommon |
|---|
company, email, website |
| Constructor Summary | |
|---|---|
EnhancedFile(java.io.File parent,
java.lang.String child)
|
|
EnhancedFile(java.lang.String pathname)
|
|
EnhancedFile(java.lang.String parent,
java.lang.String child)
|
|
EnhancedFile(java.net.URI uri)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getExtension()
|
java.lang.String |
getFileNameNoExtension()
|
java.lang.String |
getFriendlyFileSize()
Returns the file size in user friendly string format. |
void |
removeCompletely()
This method complete eliminate the path and its contents. |
| Methods inherited from class java.io.File |
|---|
canRead, canWrite, 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 |
| Constructor Detail |
|---|
public EnhancedFile(java.io.File parent,
java.lang.String child)
throws java.lang.NullPointerException
java.lang.NullPointerExceptionpublic EnhancedFile(java.lang.String pathname)
public EnhancedFile(java.lang.String parent,
java.lang.String child)
public EnhancedFile(java.net.URI uri)
| Method Detail |
|---|
public java.lang.String getExtension()
public java.lang.String getFileNameNoExtension()
public java.lang.String getFriendlyFileSize()
public void removeCompletely()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||