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 IFile
public String getName()
public IDirectory getParent()
public long getSize()
public boolean isDirectory()
isDirectory
in interface IFile
public boolean isFile()
public InputStream open() throws IOException
IFile
open
in interface IFile
IOException
public IDirectory getRoot()
public URL toURL() throws MalformedURLException
toURL
in interface IFile
MalformedURLException
public IDirectory convertNested()
convertNested
in interface IFile
Copyright © 2016. All rights reserved.