public class FileImpl extends Object implements IFile
| Modifier and Type | Field and Description |
|---|---|
protected File |
file
This file in the file system
|
protected String |
rootDir
The name of the root directory of the file system
|
protected File |
rootDirFile
The root File in the file system
|
| Modifier and Type | Method and Description |
|---|---|
IDirectory |
convert() |
IDirectory |
convertNested() |
boolean |
equals(Object obj) |
long |
getLastModified() |
String |
getName() |
IDirectory |
getParent() |
IDirectory |
getRoot() |
long |
getSize() |
int |
hashCode() |
boolean |
isDirectory() |
boolean |
isFile() |
InputStream |
open()
The input stream returned by this method should always be closed after use.
|
String |
toString() |
URL |
toURL() |
protected String rootDir
protected File file
protected File rootDirFile
public IDirectory convert()
public long getLastModified()
getLastModified in interface IFilepublic String getName()
public IDirectory getParent()
public long getSize()
public boolean isDirectory()
isDirectory in interface IFilepublic boolean isFile()
public InputStream open() throws IOException
IFileopen in interface IFileIOExceptionpublic IDirectory getRoot()
public URL toURL() throws MalformedURLException
toURL in interface IFileMalformedURLExceptionpublic IDirectory convertNested()
convertNested in interface IFileCopyright © 2021. All rights reserved.